Repository navigation
Commit 76b4ea1
authored
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 #233521 parent 6fc0193 commit 76b4ea1
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- src/components-examples/material/form-field/form-field-custom-control
| 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