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(ui5-split-button): fix doubled click event when space is pressed #10241

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

NHristov-sap
Copy link
Contributor

@NHristov-sap NHristov-sap commented Nov 22, 2024

During the work on another task I have found that when a default action of a ui5-split-button is activated by pressing of Space key, the click event is fired twice - on keydown and on keyup. It should be fired only once on keyup only if the Space is pressed and before the release Escape or Shift is not pressed (this is accessibility feature related to all buttons).

This PR fixes the issue.

@NHristov-sap NHristov-sap self-assigned this Nov 22, 2024
@NHristov-sap NHristov-sap added bug This issue is a bug in the code ACC Medium Prio 2.0 labels Nov 22, 2024
@github-actions github-actions bot added the Stale label Dec 18, 2024
@github-actions github-actions bot closed this Dec 26, 2024
@github-actions github-actions bot removed the Stale label Jan 22, 2025
@NHristov-sap NHristov-sap merged commit d0d3cc5 into main Jan 23, 2025
18 checks passed
@NHristov-sap NHristov-sap deleted the splitbutton_space branch January 23, 2025 08:31
@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This PR is included in version v2.7.0-rc.2 🎉

The release is available on v2.7.0-rc.2

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 ACC bug This issue is a bug in the code Medium Prio released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants