Skip to content

fix: cancel tooltip close on hover re-entry - #1141

Open
iu-glints wants to merge 1 commit into
v4from
feature/pge-142448
Open

iu-glints wants to merge 1 commit into
v4from
feature/pge-142448

Conversation

@iu-glints

Copy link
Copy Markdown
Collaborator

Summary

  • cancel a pending Tooltip close animation when the trigger is hovered again
  • clear the pending close timeout when Tooltip unmounts
  • cover rapid leave/re-entry with fake timers

Task

https://applink.larksuite.com/client/todo/detail?guid=3d2a9624-13aa-4392-ba58-3e1732de9fc9&suite_entity_num=t142448

Test evidence

  • yarn jest --env jsdom --runInBand src/@next/Tooltip/Tooltip.test.tsx
  • targeted ESLint for the changed Tooltip files
  • yarn prettier
  • focused TypeScript check for the changed Tooltip files

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant