Skip to content

bug([mat-form-field]): Show asterix when required field is disabled #19410

@popec

Description

@popec

Reproduction

https://stackblitz.com/edit/angular-ivy-mehbeg

Steps to reproduce:

  1. Click on disable, this will disable form and asterix will disappear
  2. Click on enable and asterix will be shown again

Expected Behavior

Only [required] attribute should control asterix (*)

Actual Behavior

asterix (*) depends on enabled/disabled state

Environment

  • Angular: 9.1.4
  • CDK/Material: 9.2.4
  • Browser(s): Chrome 81
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/form-fieldmaterial specIssue related to the Material Design spec https://material.io/design/

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions