Skip to content

Commit 9c065d1

Browse files
fix: only set rendered when showing the tooltip
1 parent 04feb02 commit 9c065d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Tooltip/Tooltip.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ const Tooltip = ({
109109
if (!mounted.current) {
110110
return
111111
}
112-
setRendered(true)
112+
if (value) {
113+
setRendered(true)
114+
}
113115
/**
114116
* wait for the component to render and calculate position
115117
* before actually showing

0 commit comments

Comments
 (0)