Skip to content

Commit 71cc3ca

Browse files
committed
fix: recompute popup position
1 parent 693f4ba commit 71cc3ca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/free-seals-pay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ultraviolet/ui": patch
3+
---
4+
5+
`Popup`: position is recomputed when children changes

packages/ui/src/components/Popup/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export const Popup = forwardRef(
239239
}),
240240
)
241241
}
242-
}, [hasArrow, placement, popupPortalTarget, align])
242+
}, [hasArrow, placement, popupPortalTarget, align, children])
243243

244244
/**
245245
* This function is called when we need to recompute positions of popup due to window scroll or resize.

0 commit comments

Comments
 (0)