Skip to content

Commit bae9539

Browse files
authored
docs: mat-error can only rendered if the input has touched and is invalid state (#27752)
The mat-error can only rendered if the input has touched and the input is invalid. The "either" term in the explanation may be confusing and lead to the assumption that the mat-error is rendered if it has a touch or an invalid status.
1 parent 3f5a43b commit bae9539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/input/input.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ element. In some cases that `<mat-form-field>` may use the placeholder as the la
5050
The `<mat-form-field>` allows you to
5151
[associate error messages](https://material.angular.io/components/form-field/overview#error-messages)
5252
with your `matNativeControl`. By default, these error messages are shown when the control is invalid and
53-
either the user has interacted with (touched) the element or the parent form has been submitted. If
53+
the user has interacted with (touched) the element or the parent form has been submitted. If
5454
you wish to override this behavior (e.g. to show the error as soon as the invalid control is dirty
5555
or when a parent form group is invalid), you can use the `errorStateMatcher` property of the
5656
`matNativeControl`. The property takes an instance of an `ErrorStateMatcher` object. An `ErrorStateMatcher`

0 commit comments

Comments
 (0)