Skip to content

Commit

Permalink
Enable animationFrame options in autoUpdate function
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Aug 25, 2022
1 parent 7be21ba commit 02c24d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/components/src/popover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ const Popover = (
} = useFloating( {
placement: normalizedPlacementFromProps,
middleware,
whileElementsMounted: autoUpdate,
whileElementsMounted: ( referenceParam, floatingParam, updateParam ) =>
autoUpdate( referenceParam, floatingParam, updateParam, {
animationFrame: true,
} ),
} );

useEffect( () => {
Expand Down

0 comments on commit 02c24d6

Please sign in to comment.