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

Merged
merged 1 commit into from
Jul 1, 2025

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
@crisbeto crisbeto removed the request for review from wagnermaciel July 1, 2025 05:14
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Jul 1, 2025
@crisbeto crisbeto merged commit 6dc2f3b into angular:main Jul 1, 2025
29 of 32 checks passed
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 area: cdk/a11y target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants