Skip to content

Commit 9fd5769

Browse files
committed
#1640: Fix OnSpill destroy error
1 parent 82ce396 commit 9fd5769

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/OnSpill/OnSpill.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const drop = function({
1010
hideGhostForTarget,
1111
unhideGhostForTarget
1212
}) {
13+
if (!originalEvent) return;
1314
let toSortable = putSortable || activeSortable;
1415
hideGhostForTarget();
1516
let touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;

0 commit comments

Comments
 (0)