Skip to content

docs-bug(COMPONENT): Custom input component incorrectly documented #20269

Closed
@ashblue

Description

@ashblue

Documentation Feedback

The example phone input breaks the ability to use <mat-error>. Please update the errorState field from this to this in order to fix it. I spent a whole day trying to figure out why the example wouldn't work with <mat-error>. Hopefully updating this will save some other poor souls some time.

public errorState: boolean = false;
public get errorState(): boolean {
    return this.parts.invalid;
}

Affected documentation page: https://material.angular.io/components/form-field/examples

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/form-fielddocsThis issue is related to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions