From bd1015ddd5d64d8b651bfda3d2fe6d42940d2c49 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Thu, 25 Jan 2024 12:35:35 +0000 Subject: [PATCH] Fixed #5146 --- components/lib/utils/DomHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }