diff --git a/components/lib/tooltip/Tooltip.js b/components/lib/tooltip/Tooltip.js index 41359bad03..1c8cf01ce0 100644 --- a/components/lib/tooltip/Tooltip.js +++ b/components/lib/tooltip/Tooltip.js @@ -431,7 +431,7 @@ export const Tooltip = React.memo( return () => { unloadTargetEvents(); }; - }, [show, hide, props.target]); + }, [visibleState, props.target]); useUpdateEffect(() => { if (visibleState) { @@ -469,9 +469,7 @@ export const Tooltip = React.memo( }, [props.content]); useUnmountEffect(() => { - clearTimeouts(); - unloadTargetEvents(); - + hide(); ZIndexUtils.clear(elementRef.current); });