From 10351052d73342f2f7fe1c929dcd1fb9cc064e1b Mon Sep 17 00:00:00 2001 From: Vitaly Rtishchev Date: Tue, 18 Oct 2022 18:37:20 +0400 Subject: [PATCH] [@mantine/core] Tooltip: Add position fallback to reduce position shift (#2500) --- src/mantine-core/src/Tooltip/Tooltip.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mantine-core/src/Tooltip/Tooltip.tsx b/src/mantine-core/src/Tooltip/Tooltip.tsx index 781d9436af2..972bde7930d 100644 --- a/src/mantine-core/src/Tooltip/Tooltip.tsx +++ b/src/mantine-core/src/Tooltip/Tooltip.tsx @@ -150,8 +150,8 @@ const _Tooltip = forwardRef((props, ref) => { ...style, ...transitionStyles, zIndex, - top: tooltip.y ?? '', - left: tooltip.x ?? '', + top: tooltip.y ?? 0, + left: tooltip.x ?? 0, }, })} >