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 c645db0 commit acaad76Copy full SHA for acaad76
packages/main/src/PopoverResize.ts
@@ -119,7 +119,12 @@ class PopoverResize {
119
const isRtl = popover.isRtl;
120
121
const opener = popover.getOpenerHTMLElement(popover.opener);
122
- const openerRect = opener!.getBoundingClientRect();
+
123
+ if (!opener) {
124
+ return ResizeHandlePlacement.BottomRight;
125
+ }
126
127
+ const openerRect = opener.getBoundingClientRect();
128
const popoverWrapperRect = popover.getBoundingClientRect();
129
130
let openerCX = Math.floor(openerRect.x + openerRect.width / 2);
0 commit comments