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 {
3535 scrollBy ,
3636 clone ,
3737 expando ,
38- getChildContainingRectFromElement
38+ getChildContainingRectFromElement ,
39+ getParentOrHost ,
3940} from './utils.js' ;
4041
4142
@@ -755,10 +756,6 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
755756
756757 while ( target && target . shadowRoot ) {
757758 target = target . shadowRoot . elementFromPoint ( touchEvt . clientX , touchEvt . clientY ) ;
758- const host = target . getRootNode ( ) . host ;
759- if ( host ) {
760- target = host ;
761- }
762759 if ( target === parent ) break ;
763760 parent = target ;
764761 }
@@ -785,7 +782,7 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
785782 target = parent ; // store last element
786783 }
787784 /* jshint boss:true */
788- while ( parent = parent . parentNode ) ;
785+ while ( parent = getParentOrHost ( parent ) ) ;
789786 }
790787
791788 _unhideGhostForTarget ( ) ;
You can’t perform that action at this time.
0 commit comments