Skip to content

mat-button-toggle-group [disable] input does not disable functionality, only greys out the buttons #18563

@ClaraProjects

Description

@ClaraProjects

Reproduction

Steps to reproduce:

  1. create mat-button-toggle-group component
  2. add [disabled]="true" (dynamic input)
  3. add (click) event function call on mat-button-toggle

Expected Behavior

What behavior were you expecting to see?

buttons should be disabled and not clickable, onclick would not fire an event

Actual Behavior

What behavior did you actually see?
buttons are displayed as disabled but are also clickable and fires click event

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions