We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b71493 commit 2a792ceCopy full SHA for 2a792ce
src/components/Tooltip/Tooltip.tsx
@@ -159,7 +159,6 @@ const Tooltip: React.FC<TooltipProps> = ({
159
const [triggerReference, setTriggerReference] = React.useState(undefined);
160
const [contentReference, setContentReference] = React.useState(undefined);
161
162
- if (!content) return children;
163
164
/**
165
* Map the older placement values to Popper placement as we need to get the correct placement for the tooltip from the Popper library
@@ -204,7 +203,7 @@ const Tooltip: React.FC<TooltipProps> = ({
204
203
onMouseOut: () => handleVisibilityChange(false),
205
ref: setTriggerReference
206
})}
207
- {isVisible && (
+ {content && isVisible && (
208
<TooltipBody
209
ref={setContentReference}
210
inverted={inverted}
0 commit comments