Skip to content

Commit

Permalink
Merge pull request #2263 from lucaplays/master
Browse files Browse the repository at this point in the history
Added conditional statement whether dragged element should be dropped
  • Loading branch information
owen-m1 authored Apr 28, 2023
2 parents babf6ab + 87fc741 commit 7af63fd
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 7af63fd

Please sign in to comment.