Skip to content

fix(cdk-experimental/listbox): initial listbox focus state #30764

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

Merged
merged 2 commits into from
Apr 23, 2025

Conversation

wagnermaciel
Copy link
Contributor

  • The first option to receive focus in a listbox should be either the first selected option or the first option in the list if no option is selected.

@wagnermaciel wagnermaciel added the target: major This PR is targeted for the next major release label Apr 1, 2025
@wagnermaciel wagnermaciel marked this pull request as ready for review April 10, 2025 19:48
@wagnermaciel wagnermaciel requested a review from a team as a code owner April 10, 2025 19:48
@wagnermaciel wagnermaciel requested review from crisbeto, mmalerba and andrewseguin and removed request for a team April 10, 2025 19:48
@wagnermaciel wagnermaciel added the action: merge The PR is ready for merge by the caretaker label Apr 14, 2025
@mmalerba mmalerba removed the action: merge The PR is ready for merge by the caretaker label Apr 21, 2025
@mmalerba
Copy link
Contributor

@wagnermaciel needs rebase

* The first option to receive focus in a listbox should be either the first focusable selected option or the first focusable option in the list if no focusable selected option exists.
@wagnermaciel
Copy link
Contributor Author

@andrewseguin @mmalerba Re-requesting review because when rebasing I found & fixed an issue where disabled items could get selected. I added unit tests to ensure the active index can only gets set to focusable options.

@wagnermaciel wagnermaciel added the action: merge The PR is ready for merge by the caretaker label Apr 23, 2025
@wagnermaciel wagnermaciel merged commit 44e9ccb into angular:main Apr 23, 2025
24 of 26 checks passed
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants