Skip to content

Commit

Permalink
Fix #5312: Tooltip left behind on slow machine
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 15, 2023
1 parent d9fa7f6 commit eb49405
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 eb49405

Please sign in to comment.