Skip to content

bug(MatChipInput): MatChipInput does not set mat-form-field-disabled on MatFormField wrapper when being disabled #31468

Open
@clamli

Description

@clamli

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

When a MatChipInput is disabled, it does not set mat-form-field-disabled CSS class on its MatFormField wrapper like it does for MatInput.

Reproduction

StackBlitz link: https://stackblitz.com/edit/xcgzeewq?file=src%2Fexample%2Fchips-input-example.html
Steps to reproduce:

  1. There are one disabled MatChipInput and one disabled MatInput in the example
  2. The form field wrapper of the MatInput has mat-form-field-disabled CSS class, while the form field wrapper of the MatChipInput does not

Expected Behavior

Both of the form field should set mat-form-field-disabled CSS class as the input is disabled.

Actual Behavior

The form field wrapper of the MatInput has mat-form-field-disabled CSS class, while the form field wrapper of the MatChipInput does not

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/chips

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions