Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgio committed Nov 28, 2024
1 parent 3ad4a74 commit 311b5ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Overlay/useOverlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export function getModifiers(props: Pick<OverlayOptions, 'align' | 'flip'>) {
{
name: 'preventOverflow',
options: {
mainAxis: false
}
}
mainAxis: false,
},
},
];

if (props.align !== 'right' && props.align !== 'left') {
Expand Down Expand Up @@ -69,7 +69,7 @@ export function useOverlay(
);

const refElementHeight = referenceElement?.offsetHeight;

// Re-position the popper if the height of the reference element changes.
// Exclude `forceUpdate` from dependencies since it changes with each render.
useEffect(() => {
Expand Down

0 comments on commit 311b5ab

Please sign in to comment.