Skip to content

fix(aria/menu): avoid re-rendering when unrelated elements are added - #33996

Merged
crisbeto merged 1 commit into
angular:mainfrom
crisbeto:33976/aria-collection
Oct 22, 2026
Merged

crisbeto merged 1 commit into
angular:mainfrom
crisbeto:33976/aria-collection

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Updates the SortedCollection so it doesn't emit changes when a DOM node that's not a member of the collection is added. I also did some internal cleanup so we don't need to re-create the Set all the time and to keep a version counter.

Fixes #33976.

Updates the `SortedCollection` so it doesn't emit changes when a DOM node that's not a member of the collection is added. I also did some internal cleanup so we don't need to re-create the `Set` all the time and to keep a version counter.

Fixes angular#33976.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Oct 22, 2026
@pullapprove
pullapprove Bot requested review from andrewseguin and tjshiu October 22, 2026 07:11
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Oct 22, 2026
@crisbeto
crisbeto merged commit 8fc6eac into angular:main Oct 22, 2026
33 of 35 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 Oct 22, 2026
…33996)

Updates the `SortedCollection` so it doesn't emit changes when a DOM node that's not a member of the collection is added. I also did some internal cleanup so we don't need to re-create the `Set` all the time and to keep a version counter.

Fixes #33976.

(cherry picked from commit 8fc6eac)
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/menu 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/menu): any DOM change inside an open submenu moves focus up and collapses it

2 participants