Skip to content

fix(cdk/a11y): allow mixed types to be passed into setActiveItem #31462

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 1 commit into
base: main
Choose a base branch
from

Conversation

crisbeto
Copy link
Member

This is a follow-up to #31371 (comment). ListKeyManager.setActiveItem supports both a reference to an item or an index, however there's no override that allows T | number which can be inconvenient.

These changes add extra overrides to resolve the issue.

This is a follow-up to angular#31371 (comment). `ListKeyManager.setActiveItem` supports both a reference to an item or an index, however there's no override that allows `T | number` which can be inconvenient.

These changes add extra overrides to resolve the issue.
@crisbeto crisbeto requested a review from a team as a code owner June 29, 2025 07:03
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Jun 29, 2025
@crisbeto crisbeto requested review from mmalerba and wagnermaciel and removed request for a team June 29, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: cdk/a11y target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant