Skip to content

Commit

Permalink
fix: 修复popover定位问题
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc committed Mar 14, 2024
1 parent 294470d commit 9ca2195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amis-core/src/utils/dom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export function calculatePosition(
) {
parentElement = parentElement.offsetParent;
}
const parentRect = parentElement.getBoundingClientRect?.();
const parentRect = parentElement?.getBoundingClientRect?.();
const parentTransformed = {
x: parentRect?.x || 0,
y: parentRect?.y || 0
Expand Down

0 comments on commit 9ca2195

Please sign in to comment.