fix(material/form-field): support signal forms in MatFormFieldControl - #33850
Merged
Merged
Conversation
crisbeto
force-pushed
the
32072/form-field-signal-forms
branch
from
September 22, 2026 09:51
7d7ca6f to
89973a7
Compare
Updates `MatFormFieldControl` to allow an `ngField` property for those directives that support signal forms. It also makes the following changes: * Removes `value` since it isn't used anywhere and it can prevent apps from implementing `FormValueControl`. * Makes `stateChanges` optional since it shouldn't be necessary for signal-based components. * Allows `focused` to be a signal. * Allows `empty` to be a signal. * Allows `shouldLabelFloat` to be a signal. * Allows `required` to be a signal. * Allows `disabled` to be a signal. * Allows `errorState` to be a signal. * Allows `autofilled` to be a signal. * Allows `userAriaDescribedBy` to be a signal.
Rewrites the custom form field guide and related example to be based on signal forms.
crisbeto
force-pushed
the
32072/form-field-signal-forms
branch
from
September 22, 2026 13:17
89973a7 to
b7d3eba
Compare
crisbeto
marked this pull request as ready for review
September 22, 2026 18:40
andrewseguin
approved these changes
Sep 22, 2026
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
MatFormFieldControlto allow anngFieldproperty for those directives that support signal forms. It also makes the following changes:valuesince it isn't used anywhere and it can prevent apps from implementingFormValueControl.stateChangesoptional since it shouldn't be necessary for signal-based components.focusedto be a signal.emptyto be a signal.shouldLabelFloatto be a signal.requiredto be a signal.disabledto be a signal.errorStateto be a signal.autofilledto be a signal.userAriaDescribedByto be a signal.