提交 0e4eabfe 编写于 作者: O owen

#1611: Remove MultiDrag events on GLOBAL destroy

上级 c3d1ea7f
......@@ -456,7 +456,7 @@ function MultiDragPlugin() {
multiDragClones.length = 0;
},
destroy() {
destroyGlobal() {
this._deselectMultiDrag();
off(document, 'pointerup', this._deselectMultiDrag);
off(document, 'mouseup', this._deselectMultiDrag);
......
......@@ -1284,7 +1284,7 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
evt
});
parentEl = dragEl.parentNode;
parentEl = dragEl && dragEl.parentNode;
// Get again after plugin event
newIndex = index(dragEl);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册