Skip to content

Commit

Permalink
Added conditional statement whether dragged element should be dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Dalpra committed Apr 6, 2023
1 parent babf6ab commit 87fc741
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -2476,7 +2476,9 @@
el.removeAttribute('draggable');
});

this._onDrop();
if (el === rootEl) {
this._onDrop();
}

this._disableDelayedDragEvents();

Expand Down

0 comments on commit 87fc741

Please sign in to comment.