Skip to content

Commit 87cd7d6

Browse files
committed
fix: re-add missing toggleClass function call on selection
1 parent 05e5343 commit 87cd7d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/MultiDrag/MultiDrag.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function MultiDragPlugin() {
215215
return;
216216
}
217217

218-
const toSortable = target.parentNode && target.parentNode[expando];
218+
const toSortable = target.parentNode[expando];
219219

220220
if (!toSortable || multiDragElements.length === 0) {
221221
return;
@@ -360,6 +360,7 @@ function MultiDragPlugin() {
360360
if (options.multiDragKey && !this.multiDragKeyDown) {
361361
MultiDrag.utils.clear();
362362
}
363+
toggleClass(dragEl, options.selectedClass, !~multiDragElements.indexOf(dragEl));
363364

364365
if (!~multiDragElements.indexOf(dragEl)) {
365366
multiDragElements.push(dragEl);

0 commit comments

Comments
 (0)