Skip to content

Commit

Permalink
fix(Tooltip): not dynamically update align when position is mouse (#6764
Browse files Browse the repository at this point in the history
)
  • Loading branch information
KumJungMin authored Jun 18, 2024
1 parent 2a8001f commit a698936
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/lib/tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a698936

Please sign in to comment.