We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 41ff81f + 9fab4b9 commit e7b4859Copy full SHA for e7b4859
1 file changed
src/Sortable.js
@@ -35,7 +35,8 @@ import {
35
scrollBy,
36
clone,
37
expando,
38
- getChildContainingRectFromElement
+ getChildContainingRectFromElement,
39
+ getParentOrHost
40
} from './utils.js';
41
42
@@ -781,7 +782,7 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
781
782
target = parent; // store last element
783
}
784
/* jshint boss:true */
- while (parent = parent.parentNode);
785
+ while (parent = getParentOrHost(parent));
786
787
788
_unhideGhostForTarget();
0 commit comments