From a6989369124f0ab570426c7a4efb3ddef693cea3 Mon Sep 17 00:00:00 2001 From: KumJungMin <37934668+KumJungMin@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:52:25 +0900 Subject: [PATCH] fix(Tooltip): not dynamically update align when position is mouse (#6764) --- components/lib/tooltip/Tooltip.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/lib/tooltip/Tooltip.js b/components/lib/tooltip/Tooltip.js index c6c86129bf..6fb343f001 100644 --- a/components/lib/tooltip/Tooltip.js +++ b/components/lib/tooltip/Tooltip.js @@ -470,7 +470,9 @@ export const Tooltip = React.memo( }, [visibleState]); useUpdateEffect(() => { - if (visibleState) { + const position = getPosition(currentTargetRef.current); + + if (visibleState && position !== 'mouse') { applyDelay('updateDelay', () => { updateText(currentTargetRef.current, () => { align(currentTargetRef.current);