Skip to content

Conversation

crisbeto
Copy link
Member

The sort header clears a signal when the focused state of its descendants changes. This was causing a signal write error if a signal is bound to its disabled input, because changing the disabled state also ends up blurring the focused descendant.

Fixes #31723.

The sort header clears a signal when the focused state of its descendants changes. This was causing a signal write error if a signal is bound to its `disabled` input, because changing the disabled state also ends up blurring the focused descendant.

Fixes angular#31723.
@crisbeto crisbeto requested a review from a team as a code owner August 24, 2025 08:20
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Aug 24, 2025
@crisbeto crisbeto requested review from andrewseguin and wagnermaciel and removed request for a team August 24, 2025 08:20
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Aug 25, 2025
@crisbeto crisbeto merged commit 46e1895 into angular:main Aug 25, 2025
27 of 29 checks passed
@crisbeto
Copy link
Member Author

The changes were merged into the following branches: main, 20.2.x

crisbeto added a commit that referenced this pull request Aug 25, 2025
The sort header clears a signal when the focused state of its descendants changes. This was causing a signal write error if a signal is bound to its `disabled` input, because changing the disabled state also ends up blurring the focused descendant.

Fixes #31723.

(cherry picked from commit 46e1895)
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: material/sort 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(matSort): Writing to signals error when using [disabled] on mat-sort-header
2 participants