Fixed #5146
parent
9551857306
commit
bd1015ddd5
|
@ -401,7 +401,7 @@ export default {
|
||||||
getParentNode(element) {
|
getParentNode(element) {
|
||||||
let parent = element?.parentNode;
|
let parent = element?.parentNode;
|
||||||
|
|
||||||
if (parent && parent.host) {
|
if (parent && parent instanceof ShadowRoot && parent.host) {
|
||||||
parent = parent.host;
|
parent = parent.host;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue