Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle tooltip controller closing state properly #8131

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

web-padawan
Copy link
Member

Description

These are two findings that I discovered while working on #8129

  1. When close() is called twice e.g. on target mouseleave and then parent mouseover, the second call overwrites the __closeTimeout reference so one of the timeouts is not cleared properly on reopening and tooltip unexpectedly closes,
  2. Also, aborting close only aborts __closeTimeout but the tooltip is not removed from the closing set - so before reopening, it is immediately closed by the logic that is supposed to flush other closing tooltips.

This unfortunately can't be easily reproduced with default tooltips so I had to add a test that checks the controller logic.
IMO this is fine since the controller API + manual mode is what we use in vaadin-menu-bar so we need to test it.

Type of change

  • Bugfix

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.alpha4 and is also targeting the upcoming stable 24.6.0 version.

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

Successfully merging this pull request may close these issues.

3 participants