Skip to content

docs-bug(MatFormField): inconsistency between Custom form field guide and live example for errorState #22558

@AlexElin

Description

@AlexElin

Documentation Feedback

In the Custom form field guide the errorState is just set to false.
But in the related live example it has another implementation:

get errorState(): boolean {
    return this.parts.invalid && this.parts.dirty;
}

There's need to eliminate inconsistency between the guide and the live example

Affected documentation page: https://material.angular.io/guide/creating-a-custom-form-field-control#errorstate

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsdocsThis issue is related to documentationhelp wantedThe team would appreciate a PR from the community to address this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions