Skip to content

Commit

Permalink
Reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jan 10, 2023
1 parent 59556fe commit 0192210
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/components/src/popover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,15 +392,10 @@ const UnforwardedPopover = (
} = useFloating( {
placement: normalizedPlacementFromProps,
middleware,
whileElementsMounted: (
referenceParam,
floatingParam,
updateParam
) => {
return autoUpdate( referenceParam, floatingParam, updateParam, {
whileElementsMounted: ( referenceParam, floatingParam, updateParam ) =>
autoUpdate( referenceParam, floatingParam, updateParam, {
animationFrame: true,
} );
},
} ),
} );

const arrowCallbackRef = useCallback(
Expand Down

0 comments on commit 0192210

Please sign in to comment.