We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 591e987 commit cee8c65Copy full SHA for cee8c65
src/lib/checkbox/checkbox.ts
@@ -245,8 +245,10 @@ export class MatCheckbox extends _MatCheckboxMixinBase implements ControlValueAc
245
@Input()
246
get disabled() { return this._disabled; }
247
set disabled(value: any) {
248
- if (value != this.disabled) {
249
- this._disabled = value;
+ const newValue = coerceBooleanProperty(value);
+
250
+ if (newValue !== this.disabled) {
251
+ this._disabled = newValue;
252
this._changeDetectorRef.markForCheck();
253
}
254
0 commit comments