Skip to content

Commit

Permalink
#1611: Remove MultiDrag events on GLOBAL destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-m1 committed Sep 2, 2019
1 parent c3d1ea7 commit 0e4eabf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/MultiDrag/MultiDrag.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ function MultiDragPlugin() {
multiDragClones.length = 0;
},

destroy() {
destroyGlobal() {
this._deselectMultiDrag();
off(document, 'pointerup', this._deselectMultiDrag);
off(document, 'mouseup', this._deselectMultiDrag);
Expand Down
2 changes: 1 addition & 1 deletion src/Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0e4eabf

Please sign in to comment.