Skip to content

MatFormField guide disabled incomplete #9656

@cubidobusinesssolutions

Description

Bug, feature request, or proposal:

Proposal

What is the expected behavior?

Working MatFormField guide

What is the current behavior?

disabled state not working

What are the steps to reproduce?

Implement a custom MatFormfield via Creating a custom form field control

Is there anything else we should know?

Please add the following snippet to Creating a custom form field control#ngControl

// implements ControlValueAccessor.setDisabledState
setDisabledState(isDisabled: boolean): void {
  this.disabled = isDisabled;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: docsRelated to the documentationarea: material/form-fieldhelp wantedLabel noting an issue which the team is looking for contribution from the community to fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions