From 9fd576951eed5742138152c36cd68122c162e1bc Mon Sep 17 00:00:00 2001 From: owen-m1 Date: Thu, 26 Sep 2019 21:31:56 -0400 Subject: [PATCH] #1640: Fix OnSpill destroy error --- plugins/OnSpill/OnSpill.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/OnSpill/OnSpill.js b/plugins/OnSpill/OnSpill.js index a81962b..e8c6439 100644 --- a/plugins/OnSpill/OnSpill.js +++ b/plugins/OnSpill/OnSpill.js @@ -10,6 +10,7 @@ const drop = function({ hideGhostForTarget, unhideGhostForTarget }) { + if (!originalEvent) return; let toSortable = putSortable || activeSortable; hideGhostForTarget(); let touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent; -- GitLab