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): scroll active option into view when using aria-activedescendant #29722

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

crisbeto
Copy link
Member

When the CDK listbox has useActiveDescendant enabled, it won't focus the individual options so they won't be scrolled into the view automatically. This change adds a manual call to scroll them in instead.

Fixes #28989.

…vedescendant

When the CDK listbox has `useActiveDescendant` enabled, it won't focus the individual options so they won't be scrolled into the view automatically. This change adds a manual call to scroll them in instead.

Fixes angular#28989.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Sep 12, 2024
@crisbeto crisbeto requested a review from a team as a code owner September 12, 2024 08:17
@crisbeto crisbeto requested review from mmalerba and andrewseguin and removed request for a team September 12, 2024 08:17
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Sep 12, 2024
@crisbeto crisbeto merged commit fd40858 into angular:main Sep 12, 2024
23 of 25 checks passed
crisbeto added a commit that referenced this pull request Sep 12, 2024
…vedescendant (#29722)

When the CDK listbox has `useActiveDescendant` enabled, it won't focus the individual options so they won't be scrolled into the view automatically. This change adds a manual call to scroll them in instead.

Fixes #28989.

(cherry picked from commit fd40858)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(cdkListbox): active item is not scrolled into viewport when useActiveDescendant is true
2 participants