mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 02:59:13 +00:00
fix contextElement guard (#2399)
This commit is contained in:
committed by
GitHub
parent
1b9104d1ac
commit
5ef3c9178c
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user