kopia lustrzana https://github.com/shoelace-style/shoelace
fix contextElement guard
rodzic
6f09a75567
commit
d0479631d5
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue