Skip to content

Commit

Permalink
#2025: Fix reverting with nested sortables
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-m1 committed May 8, 2021
1 parent e83eb7e commit 0a1bab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ Sortable.prototype = /** @lends Sortable.prototype */ {

if (activeSortable && !options.disabled &&
(isOwner
? canSort || (revert = !rootEl.contains(dragEl)) // Reverting item into the original list
? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list
: (
putSortable === this ||
(
Expand Down

0 comments on commit 0a1bab7

Please sign in to comment.