Skip to content

fix(aria/tabs): keep roving tabindex in sync when active tab changes programmatically - #34190

Merged
crisbeto merged 1 commit into
angular:mainfrom
crisbeto:34182/aria-tabs-tabindex
Nov 26, 2026
Merged

crisbeto merged 1 commit into
angular:mainfrom
crisbeto:34182/aria-tabs-tabindex

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Fixes that if the active tab is set through the selectedTab input, we weren't syncing up the roving tabindex.

Fixes #34182.

@crisbeto
crisbeto requested a review from ok7sai November 26, 2026 09:31
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Nov 26, 2026
@pullapprove
pullapprove Bot requested a review from andrewseguin November 26, 2026 09:31
@crisbeto
crisbeto force-pushed the 34182/aria-tabs-tabindex branch from d51a49e to facee56 Compare November 26, 2026 09:41
…programmatically

Fixes that if the active tab is set through the `selectedTab` input, we weren't syncing up the roving tabindex.

Fixes angular#34182.
@crisbeto
crisbeto force-pushed the 34182/aria-tabs-tabindex branch from facee56 to 5cedbdd Compare November 26, 2026 10:35
@crisbeto

Copy link
Copy Markdown
Member Author

I ended up tweaking the approach, because the previous one caused "changed after checked" errors internally.

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Nov 26, 2026
@crisbeto
crisbeto merged commit cabf210 into angular:main Nov 26, 2026
30 of 32 checks passed
@crisbeto

Copy link
Copy Markdown
Member Author

This PR was merged into the repository. The changes were merged into the following branches:

crisbeto added a commit that referenced this pull request Nov 26, 2026
…programmatically (#34190)

Fixes that if the active tab is set through the `selectedTab` input, we weren't syncing up the roving tabindex.

Fixes #34182.

(cherry picked from commit cabf210)
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: aria/tabs 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(aria/tabs): programmatic selectedTab change does not move the roving tab stop after user interaction

2 participants