From ac5ec44ac666c1278699e84f79046ea60ef8af3e Mon Sep 17 00:00:00 2001 From: Ashish Kumar KC Date: Tue, 19 Nov 2019 08:54:07 +0530 Subject: [PATCH] Added type check for 'dragStarted' variable as this is causing thousands of console errors in Chrome, Firefox, Edge, IE, Safari before the first drag. This change is harmless because it is just checking if the variable dragStarted is declared before using it. Tested across all of the above browsers and working fine after this change. --- plugins/MultiDrag/MultiDrag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/MultiDrag/MultiDrag.js b/plugins/MultiDrag/MultiDrag.js index 7b2c32c..61f6901 100644 --- a/plugins/MultiDrag/MultiDrag.js +++ b/plugins/MultiDrag/MultiDrag.js @@ -467,7 +467,7 @@ function MultiDragPlugin() { }, _deselectMultiDrag(evt) { - if (dragStarted) return; + if (typeof dragStarted !== "undefined" && dragStarted) return; // Only deselect if selection is in this sortable if (multiDragSortable !== this.sortable) return; -- GitLab