Skip to content

fix(ui5-search): improve arrow navigation with grouping #12083

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

dobrinyonkov
Copy link
Contributor

@dobrinyonkov dobrinyonkov commented Aug 7, 2025

Problem: Arrow keys don't work when navigating through suggestion groups without group headers.

What changed:

  • Updated search arrow up/down focus logic to use actual focusable items from the list (flat items, without groups), using the list's listItems getter
  • Move getFocusDomRef method to ListItemGroup and return first item if no header is set
  • Includes Cypress tests to verify the navigation behavior works as expected.

@dobrinyonkov dobrinyonkov changed the title fix(ui5-shellbar-search): focus on first suggestion item fix(ui5-shellbar-search): improve arrow navigation with grouping Aug 12, 2025
@dobrinyonkov dobrinyonkov changed the title fix(ui5-shellbar-search): improve arrow navigation with grouping fix(ui5-search): improve arrow navigation with grouping Aug 12, 2025
@dobrinyonkov dobrinyonkov force-pushed the fix/shellbar-search-first-item-focus branch from bdb5f5d to f8c528d Compare August 13, 2025 05:11
@dobrinyonkov dobrinyonkov requested a review from MapTo0 August 13, 2025 05:22
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.

1 participant