Skip to content

Commit 67baa7d

Browse files
committed
fix(checkbox): disabled property not being coerced
Fixes the `disabled` property not being coerced like all the other components. Fixes #13739.
1 parent 47de296 commit 67baa7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/checkbox/checkbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export class MatCheckbox extends _MatCheckboxMixinBase implements ControlValueAc
246246
get disabled() { return this._disabled; }
247247
set disabled(value: any) {
248248
if (value != this.disabled) {
249-
this._disabled = value;
249+
this._disabled = coerceBooleanProperty(value);
250250
this._changeDetectorRef.markForCheck();
251251
}
252252
}

0 commit comments

Comments
 (0)