Skip to content

Commit

Permalink
fix: more robust multiDragGroupMember detachment
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbol committed Aug 2, 2022
1 parent 53ba979 commit 53dd0a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/MultiDrag/MultiDrag.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,12 +513,12 @@ function MultiDragPlugin() {
off(document, 'keydown', this._checkKeyDown);
off(document, 'keyup', this._checkKeyUp);

const groupMembers = multiDragGroupMembers[this.sortable.options.group.name];
const groupMembers = findAllMembersInSortableGroup(this.sortable);

if (groupMembers) {
let membersIndex;
if (~(membersIndex = groupMembers.indexOf(this.sortable))) {
multiDragGroupMembers.splice(membersIndex, 1);
groupMembers.splice(membersIndex, 1);
}
}
},
Expand Down

0 comments on commit 53dd0a7

Please sign in to comment.