From 0a1bab7bbe1ebe8fb8be135e350e6b9917e7a8bb Mon Sep 17 00:00:00 2001 From: Owen Mills Date: Sat, 8 May 2021 17:51:14 -0400 Subject: [PATCH] #2025: Fix reverting with nested sortables --- src/Sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sortable.js b/src/Sortable.js index 219a64300..56007d41c 100644 --- a/src/Sortable.js +++ b/src/Sortable.js @@ -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 || (