fix: defer popper style recalc until use (#7330)
This commit is contained in:
parent
5e1c430657
commit
d73c368ee4
@ -112,7 +112,7 @@ export default function Popover({
|
||||
[placement, offsetX, offsetY, arrowElement]
|
||||
)
|
||||
|
||||
const { styles, update, attributes } = usePopper(referenceElement, popperElement, options)
|
||||
const { styles, update, attributes } = usePopper(referenceElement, show ? popperElement : null, options)
|
||||
|
||||
const updateCallback = useCallback(() => {
|
||||
update && update()
|
||||
|
Loading…
Reference in New Issue
Block a user