Skip to content

MatFormField guide disabled incomplete #9656

Open
@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 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