Skip to content

Commit 4df34ad

Browse files
mohsomClaudéric Demers
authored and
Claudéric Demers
committed
fix: issue with cloning canvas context of dragged items (#512)
1 parent ba3fc32 commit 4df34ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SortableContainer/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export default function sortableContainer(
284284

285285
if (field.tagName === NodeType.Canvas) {
286286
const destCtx = field.getContext('2d');
287-
destCtx.drawImage(fields[index], 0, 0);
287+
destCtx.drawImage(fields[i], 0, 0);
288288
}
289289
});
290290

0 commit comments

Comments
 (0)