Skip to content

Handle back-to-back tooltip events#16561

Merged
brandonkelly merged 5 commits into5.xfrom
bugfix/cms-16530-translatable-indicator-dismissal
Jan 28, 2025
Merged

Handle back-to-back tooltip events#16561
brandonkelly merged 5 commits into5.xfrom
bugfix/cms-16530-translatable-indicator-dismissal

Conversation

@brianjhanson
Copy link
Copy Markdown
Contributor

Description

When another element was in focus (easiest was a text field), clicking on the indicator would first fire a focus event showing the tooltip and then immediately fire a click event, which would then hide the tooltip due to the toggle logic.

This fixes the issue by adding a bit of a timeout so when events are fired in rapid succession, they are treated as a single event.

Related issues

Fixes #16530

@brianjhanson brianjhanson changed the title Fixes #16530 Handle back-to-back tooltip events. Jan 28, 2025
@brianjhanson brianjhanson changed the title Handle back-to-back tooltip events. Handle back-to-back tooltip events Jan 28, 2025
@brandonkelly brandonkelly merged commit df2af0e into 5.x Jan 28, 2025
@brandonkelly brandonkelly deleted the bugfix/cms-16530-translatable-indicator-dismissal branch January 28, 2025 22:51
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.

[5.x]: Translatable indicator tooltips are immediately dismissed if something other than the t9n indicator has focus when its opened

2 participants