Skip to content

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 andrewseguin and mmalerba 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
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)
@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 Oct 13, 2024
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: 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