Commit d73c368e authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: defer popper style recalc until use (#7330)

parent 5e1c4306
...@@ -112,7 +112,7 @@ export default function Popover({ ...@@ -112,7 +112,7 @@ export default function Popover({
[placement, offsetX, offsetY, arrowElement] [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(() => { const updateCallback = useCallback(() => {
update && update() update && update()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment