Skip to content

Commit 87fc741

Browse files
author
Luca Dalpra
committed
Added conditional statement whether dragged element should be dropped
1 parent babf6ab commit 87fc741

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sortable.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2476,7 +2476,9 @@
24762476
el.removeAttribute('draggable');
24772477
});
24782478

2479-
this._onDrop();
2479+
if (el === rootEl) {
2480+
this._onDrop();
2481+
}
24802482

24812483
this._disableDelayedDragEvents();
24822484

0 commit comments

Comments
 (0)