Skip to content

disabled input on mat-checkbox not behaving like with other components #13739

@kuhnroyal

Description

@kuhnroyal

Bug, feature request, or proposal:

Bug

What is the expected behavior?

The disabled attribute/input should have the same behavior on all input elements.

What is the current behavior?

<!-- This does not disable the checkbox -->
<mat-checkbox disabled>Check me! disabled</mat-checkbox>
<!-- This does disable the checkbox incorrectly -->
<mat-checkbox disabled="false">Foo</mat-checkbox>

<!-- This does disable the button -->
<button mat-button disabled>Bar</button>
<!-- This does not disable the button -->
<button mat-raised-button disabled="false">Click me! disabled="false"</button>

What are the steps to reproduce?

https://stackblitz.com/edit/angular-material-checkboxes-hkdft7

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

6.1.10/6.4.7

Is there anything else we should know?

<mat-checkbox disabled>Foo</mat-checkbox> used to work, not exactly sure when it broke.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions