From 9c77e2c2cee9333ed0b16b3fae4b53f49c553dfc Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 14 Nov 2023 17:13:43 -0500 Subject: [PATCH] Fix #5312: Tooltip left behind on slow machine --- components/lib/tooltip/Tooltip.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/lib/tooltip/Tooltip.js b/components/lib/tooltip/Tooltip.js index 41359bad03..af3bb90be9 100644 --- a/components/lib/tooltip/Tooltip.js +++ b/components/lib/tooltip/Tooltip.js @@ -469,9 +469,8 @@ export const Tooltip = React.memo( }, [props.content]); useUnmountEffect(() => { - clearTimeouts(); + hide(); unloadTargetEvents(); - ZIndexUtils.clear(elementRef.current); });