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 14, 2023
1 parent d9fa7f6 commit 9c77e2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/lib/tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,8 @@ export const Tooltip = React.memo(
}, [props.content]);

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

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

Expand Down

0 comments on commit 9c77e2c

Please sign in to comment.