diff --git a/src/components/Tooltip/Tooltip.tsx b/src/components/Tooltip/Tooltip.tsx index e7b502812..09805ea8f 100644 --- a/src/components/Tooltip/Tooltip.tsx +++ b/src/components/Tooltip/Tooltip.tsx @@ -127,6 +127,9 @@ function TooltipContent({ // Label tooltips are kept in the DOM even when not visually open if (!open && purpose !== "label") return null; + // Hide the tooltip if it has escaped its boundary (when `boundary` prop is set) + const escaped = floatingContext.middlewareData?.hide?.escaped ?? false; + return (