Skip to content

Commit ac5ec44

Browse files
author
Ashish Kumar KC
committed
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.
1 parent ec7b5e9 commit ac5ec44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/MultiDrag/MultiDrag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ function MultiDragPlugin() {
467467
},
468468

469469
_deselectMultiDrag(evt) {
470-
if (dragStarted) return;
470+
if (typeof dragStarted !== "undefined" && dragStarted) return;
471471

472472
// Only deselect if selection is in this sortable
473473
if (multiDragSortable !== this.sortable) return;

0 commit comments

Comments
 (0)