Skip to content

Commit 36518b1

Browse files
author
Scott Miles
committed
allow findController to step out of lightDOM (re issue #30)
1 parent 6885c56 commit 36518b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/g-component.html

+3
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,9 @@
450450
var n = inNode.changeling || inNode;
451451
while (n.parentNode && n.tagName !== 'SHADOW-ROOT') {
452452
n = n.parentNode;
453+
if (n.lightDOM) {
454+
n = n.host;
455+
}
453456
if (n.changeling) {
454457
n = n.changeling;
455458
}

0 commit comments

Comments
 (0)