Skip to content

Commit

Permalink
Fix #5312: Tooltip left behind on slow machine (#5319)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Nov 15, 2023
1 parent 99f405e commit f3953f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/lib/tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,7 @@ export const Tooltip = React.memo(
}, [props.content]);

useUnmountEffect(() => {
clearTimeouts();
unloadTargetEvents();

hide();
ZIndexUtils.clear(elementRef.current);
});

Expand Down

0 comments on commit f3953f3

Please sign in to comment.