From 5ef3c9178caa1467e26272f0f017b549988f683d Mon Sep 17 00:00:00 2001 From: Diego Ferreiro Val Date: Tue, 11 Mar 2025 10:24:53 -0700 Subject: [PATCH] fix contextElement guard (#2399) --- src/components/popup/popup.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/popup/popup.component.ts b/src/components/popup/popup.component.ts index 9cb0bd9a..c12f9bdc 100644 --- a/src/components/popup/popup.component.ts +++ b/src/components/popup/popup.component.ts @@ -19,7 +19,7 @@ function isVirtualElement(e: unknown): e is VirtualElement { e !== null && typeof e === 'object' && 'getBoundingClientRect' in e && - ('contextElement' in e ? e instanceof Element : true) + ('contextElement' in e ? e.contextElement instanceof Element : true) ); }