diff --git a/src/components/Tooltip/Tooltip.tsx b/src/components/Tooltip/Tooltip.tsx index 63310afb..ebc00ffd 100644 --- a/src/components/Tooltip/Tooltip.tsx +++ b/src/components/Tooltip/Tooltip.tsx @@ -236,7 +236,7 @@ const Tooltip = ({ /** * see `onTransitionEnd` on tooltip wrapper */ - const style = getComputedStyle(document.body) + const style = getComputedStyle(tooltipRef.current || document.body) const transitionShowDelay = cssTimeToMs(style.getPropertyValue('--rt-transition-show-delay')) missedTransitionTimerRef.current = setTimeout(() => { /**