KEMBAR78
fix: ensure menu-bar is focusable after closing and moving focus by web-padawan · Pull Request #10273 · vaadin/web-components · GitHub
Skip to content

Conversation

@web-padawan
Copy link
Member

Description

Fixes #10250

This fixes two problems in vaadin-menu-bar, one of which is a V25 regression and the other one is not:

  • First one: querySelector('[tabindex="0]') can incorrectly return a sub-menu item from the submenu slot
  • Second one: with only a single item present, Tab key press is prevented with tabNavigation

I will create separate PRs to backport the corresponding KeyboardDirectionMixin fix and tests to 24.9 and 24.8.

Type of change

  • Bugfix

@web-padawan web-padawan force-pushed the fix/menu-bar-focused-query-selector branch from 5591572 to 57a7652 Compare October 1, 2025 10:11
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 1, 2025

@web-padawan web-padawan removed the request for review from sissbruecker October 1, 2025 10:20
@web-padawan web-padawan merged commit 1aa7b4b into main Oct 1, 2025
9 checks passed
@web-padawan web-padawan deleted the fix/menu-bar-focused-query-selector branch October 1, 2025 10:21
web-padawan added a commit that referenced this pull request Oct 1, 2025
) (#10275)

Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
web-padawan added a commit that referenced this pull request Oct 1, 2025
) (#10276)

Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 25.0.0-alpha14.

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.

[menu-bar] Can't focus component after opening sub-menu

3 participants