From eb49405c5a1315e600f4b1a3857aa771c2f3a74b 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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/lib/tooltip/Tooltip.js b/components/lib/tooltip/Tooltip.js index 41359bad03..fe83adec1d 100644 --- a/components/lib/tooltip/Tooltip.js +++ b/components/lib/tooltip/Tooltip.js @@ -469,9 +469,7 @@ export const Tooltip = React.memo( }, [props.content]); useUnmountEffect(() => { - clearTimeouts(); - unloadTargetEvents(); - + hide(); ZIndexUtils.clear(elementRef.current); });