diff --git a/components/lib/utils/DomHandler.js b/components/lib/utils/DomHandler.js index 29323f0fe..98aeb7f33 100755 --- a/components/lib/utils/DomHandler.js +++ b/components/lib/utils/DomHandler.js @@ -401,7 +401,7 @@ export default { getParentNode(element) { let parent = element?.parentNode; - if (parent && parent.host) { + if (parent && parent instanceof ShadowRoot && parent.host) { parent = parent.host; }