提交 ac5ec44a 编写于 作者: A Ashish Kumar KC

Added type check for 'dragStarted' variable as this is causing thousands of...

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.
上级 ec7b5e94
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册