Skip to content

Commit

Permalink
fix(Tooltip): remove custom limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
amje committed Dec 28, 2024
1 parent 8882a21 commit f58a497
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,7 @@ export function Tooltip({
placementMiddleware,
shift({
padding: OVERFLOW_PADDING,
limiter: limitShift({
offset: ({rects, placement}) => {
const referenceProp: Record<string, 'width' | 'height'> = {
top: 'width',
bottom: 'width',
left: 'height',
right: 'height',
};
return {mainAxis: rects.reference[referenceProp[placement.split('-')[0]]]};
},
}),
limiter: limitShift(),
}),
],
whileElementsMounted: autoUpdate,
Expand Down

0 comments on commit f58a497

Please sign in to comment.