We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 113f5c5 + 465aef4 commit 8b09892Copy full SHA for 8b09892
draftlogs/6996_fix.md
@@ -0,0 +1,2 @@
1
+- Fix `getFullTransformMatrix` in shadow DOM [[#6996](https://github.com/plotly/plotly.js/pull/6996)],
2
+ with thanks to @OpportunityLiu for the contribution!
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' && element instanceof ShadowRoot) {
138
+ element = element.host;
139
+ }
140
}
141
return allElements;
142
0 commit comments