We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 113f5c5 commit 066abaeCopy full SHA for 066abae
src/lib/dom.js
@@ -134,6 +134,9 @@ function getElementAndAncestors(element) {
134
while(isTransformableElement(element)) {
135
allElements.push(element);
136
element = element.parentNode;
137
+ if(typeof ShadowRoot === 'function' && typeof element instanceof ShadowRoot) {
138
+ element = element.host;
139
+ }
140
}
141
return allElements;
142
0 commit comments