Skip to content

Commit 0a1bab7

Browse files
committed
#2025: Fix reverting with nested sortables
1 parent e83eb7e commit 0a1bab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
11311131

11321132
if (activeSortable && !options.disabled &&
11331133
(isOwner
1134-
? canSort || (revert = !rootEl.contains(dragEl)) // Reverting item into the original list
1134+
? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list
11351135
: (
11361136
putSortable === this ||
11371137
(

0 commit comments

Comments
 (0)