Skip to content

Commit 497942c

Browse files
fix: force close on hidden/empty content
1 parent 4c5fc75 commit 497942c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Tooltip/Tooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,9 +710,9 @@ const Tooltip = ({
710710
}
711711
}, [id, anchorSelect])
712712

713-
const canShow = !hidden && content && show && Object.keys(inlineStyles).length > 0
713+
const canShow = show && Object.keys(inlineStyles).length > 0
714714

715-
return rendered ? (
715+
return rendered && !hidden && content ? (
716716
<WrapperElement
717717
id={id}
718718
role="tooltip"

0 commit comments

Comments
 (0)