Skip to content

Commit aef7af6

Browse files
committed
#1489: Fix infinite loop in detecting shadow DOM
1 parent 000d59e commit aef7af6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sortable.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@
940940

941941
while (target && target.shadowRoot) {
942942
target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
943+
if (target === parent) break;
943944
parent = target;
944945
}
945946

0 commit comments

Comments
 (0)