You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jermowery opened this issue
Jun 10, 2019
· 1 comment
· Fixed by #16244
Assignees
Labels
featureThis issue represents a new feature or feature request rather than a bug or bug fixGThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Please add an option to MatFormFieldDefaultOptions to hide the required marker on the field.
This will allow us to default all form fields to hide the required marker instead of specifying the hideRequiredMarker input on each one. Add the field to MatFormFieldDefaultOptions and default the value of the hideRequiredMarker input of MatFormField this this value (I think this is trivial)
Use Case
In our app our UX team wants all fields required by default, so the required marker is overkill. We have to specify hideRequiredMarker on every single usage of MatFormField which is tedious and becomes error prone. Add this feature would eliminate this issue for us.
The text was updated successfully, but these errors were encountered:
jermowery
added
the
feature
This issue represents a new feature or feature request rather than a bug or bug fix
label
Jun 10, 2019
crisbeto
added
G
This is is related to a Google internal issue
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
has pr
labels
Jun 10, 2019
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jun 10, 2019
…ured
Allows for the `hideRequiredMarker` default value to be configured through the `MAT_FORM_FIELD_DEFAULT_OPTIONS` injection token.
Fixesangular#16243.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
featureThis issue represents a new feature or feature request rather than a bug or bug fixGThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Feature Description
Please add an option to MatFormFieldDefaultOptions to hide the required marker on the field.
This will allow us to default all form fields to hide the required marker instead of specifying the hideRequiredMarker input on each one. Add the field to MatFormFieldDefaultOptions and default the value of the hideRequiredMarker input of MatFormField this this value (I think this is trivial)
Use Case
In our app our UX team wants all fields required by default, so the required marker is overkill. We have to specify hideRequiredMarker on every single usage of MatFormField which is tedious and becomes error prone. Add this feature would eliminate this issue for us.
The text was updated successfully, but these errors were encountered: