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(cdk/listbox): set initial focus to selected option #26174

Merged
merged 1 commit into from Dec 5, 2022

Commits on Dec 4, 2022

  1. fix(cdk/listbox): set initial focus to selected option

    Fixes that the listbox was setting the initial focus on a deselected option when a selected one was available.
    
    **Note:** this fix is a bit more convoluted that it needs to be. E.g. ideally we would just focus the selected option when the listbox receives focus. We can't do that, because the listbox supports two different focus management modes: focus and `aria-activedescendant`. The former doesn't allow tabbing to the listbox.
    
    Fixes angular#25833.
    crisbeto committed Dec 4, 2022
    Copy the full SHA
    fc33933 View commit details
    Browse the repository at this point in the history