Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(material/sort): error if signal is bound to disabled input #31776

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
crisbeto merged 1 commit into angular:main from crisbeto:31723/sort-header-error
Aug 25, 2025

Conversation

Copy link
Member

@crisbeto crisbeto commented Aug 24, 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.

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
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)
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Reviewers

@adolgachev adolgachev adolgachev approved these changes

Assignees
No one assigned
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
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

bug(matSort): Writing to signals error when using [disabled] on mat-sort-header

AltStyle によって変換されたページ (->オリジナル) /