Commit c92abba
docs(material/form-field): custom MatFormFieldControl validation not working unless touched (#26873)
Fixes a bug in the Angular Material where form-control remains valid unless touched. This is because MatFormFieldControl emits null value when form is invalid, but default value was not set to null, bypassing required Validators.
Fixes #23352
(cherry picked from commit 76b4ea1)1 parent 2d8dc70 commit c92abba
File tree
1 file changed
+1
-1
lines changed- src/components-examples/material/form-field/form-field-custom-control
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments