File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ import {
35
35
scrollBy ,
36
36
clone ,
37
37
expando ,
38
- getChildContainingRectFromElement
38
+ getChildContainingRectFromElement ,
39
+ getParentOrHost ,
39
40
} from './utils.js' ;
40
41
41
42
@@ -755,10 +756,6 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
755
756
756
757
while ( target && target . shadowRoot ) {
757
758
target = target . shadowRoot . elementFromPoint ( touchEvt . clientX , touchEvt . clientY ) ;
758
- const host = target . getRootNode ( ) . host ;
759
- if ( host ) {
760
- target = host ;
761
- }
762
759
if ( target === parent ) break ;
763
760
parent = target ;
764
761
}
@@ -785,7 +782,7 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
785
782
target = parent ; // store last element
786
783
}
787
784
/* jshint boss:true */
788
- while ( parent = parent . parentNode ) ;
785
+ while ( parent = getParentOrHost ( parent ) ) ;
789
786
}
790
787
791
788
_unhideGhostForTarget ( ) ;
You can’t perform that action at this time.
0 commit comments