We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bde6f1 commit 9f12434Copy full SHA for 9f12434
1 file changed
packages/react/src/components/Popovers/GenericPopover.tsx
@@ -27,6 +27,7 @@ export type GenericPopoverReference =
27
cacheMountedBoundingClientRect?: boolean;
28
}
29
| {
30
+ element: undefined;
31
// When no reference element is provided, this can be provided as an
32
// alternative "virtual" element to position the popover around.
33
getBoundingClientRect: () => DOMRect;
@@ -62,7 +63,7 @@ export function getMountedBoundingClientRectCache(
62
63
64
return () => {
65
if (
- "element" in reference &&
66
+ reference.element &&
67
(reference.cacheMountedBoundingClientRect ?? true)
68
) {
69
if (reference.element.isConnected) {
0 commit comments