Skip to content

Commit

Permalink
[@mantine/core] Tooltip: Add position fallback to reduce position shi…
Browse files Browse the repository at this point in the history
…ft (#2500)
  • Loading branch information
rtivital committed Oct 18, 2022
1 parent 32d91b5 commit 1035105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mantine-core/src/Tooltip/Tooltip.tsx
Expand Up @@ -150,8 +150,8 @@ const _Tooltip = forwardRef<HTMLElement, TooltipProps>((props, ref) => {
...style,
...transitionStyles,
zIndex,
top: tooltip.y ?? '',
left: tooltip.x ?? '',
top: tooltip.y ?? 0,
left: tooltip.x ?? 0,
},
})}
>
Expand Down

0 comments on commit 1035105

Please sign in to comment.