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: reset tabindex to -1 when initializing menu item #7203

Merged
merged 1 commit into from Mar 14, 2024

Conversation

web-padawan
Copy link
Member

Description

Fixes #7202

This change ensures that items on sub-menu reopening do not preserve old tabindex attribute value. Previously, using item.text the items were re-generated and list-box reset their tabindex, but with item.component it didn't happen.

Also related to #924 which requested resetting focus in list-box specifically for vaadin-context-menu:

This would at least help when used inside vaadin-context-menu, where the common case is that when the menu opens the focus should be on the first item in the menu.

Type of change

  • Bugfix

Copy link

sonarcloud bot commented Mar 13, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.4.0.alpha15 and is also targeting the upcoming stable 24.4.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.

Focus starts with the last selected submenu item when navigating menu items with arrow keys
3 participants