Skip to content

Add hideRequiredMarker to MatFormFieldDefaultOptions #16243

@jermowery

Description

@jermowery

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.

Metadata

Metadata

Assignees

Labels

GThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions