Skip to content

Commit 52d4b55

Browse files
committed
INT-2955: Fixed check to include undefined
1 parent e793e1f commit 52d4b55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ts/component/Editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const closestRecursive: {
2525
return found;
2626
}
2727
const next = (element.getRootNode() as ShadowRoot).host;
28-
if (next !== null) {
28+
if (next !== null && next !== undefined) {
2929
return closestRecursive(selector, next);
3030
}
3131
return null;

0 commit comments

Comments
 (0)