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 b3788a1 commit 6a9112bCopy full SHA for 6a9112b
src/tooltip/internal.tsx
@@ -31,7 +31,6 @@ export default function InternalTooltip({
31
}: InternalTooltipComponentProps) {
32
const baseProps = getBaseProps(restProps);
33
const trackRef = React.useRef<HTMLElement | SVGElement | null>(null);
34
- const [isVisible, setIsVisible] = React.useState(true);
35
36
// Update the ref with the current tracked element
37
React.useEffect(() => {
@@ -67,14 +66,9 @@ export default function InternalTooltip({
67
66
}, [onEscape]);
68
69
const handleDismissOnScroll = React.useCallback(() => {
70
- setIsVisible(false);
71
fireNonCancelableEvent(__onDismissOnScroll);
72
}, [__onDismissOnScroll]);
73
74
- if (!isVisible) {
75
- return null;
76
- }
77
-
78
return (
79
<Portal>
80
<div
0 commit comments