We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e83eb7e commit 0a1bab7Copy full SHA for 0a1bab7
1 file changed
src/Sortable.js
@@ -1131,7 +1131,7 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
1131
1132
if (activeSortable && !options.disabled &&
1133
(isOwner
1134
- ? canSort || (revert = !rootEl.contains(dragEl)) // Reverting item into the original list
+ ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list
1135
: (
1136
putSortable === this ||
1137
(
0 commit comments