We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a8603d + c724964 commit e02baa8Copy full SHA for e02baa8
src/Sortable.js
@@ -1692,7 +1692,7 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
1692
if (Sortable.eventCanceled) return;
1693
1694
// show clone at dragEl or original position
1695
- if (rootEl.contains(dragEl) && !this.options.group.revertClone) {
+ if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
1696
rootEl.insertBefore(cloneEl, dragEl);
1697
} else if (nextEl) {
1698
rootEl.insertBefore(cloneEl, nextEl);
0 commit comments