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 949e3c7 commit 1e010a3Copy full SHA for 1e010a3
src/material/checkbox/checkbox.ts
@@ -260,9 +260,11 @@ export class MatCheckbox
260
get checked(): boolean {
261
return this._checked;
262
}
263
- set checked(value: boolean) {
264
- if (value != this.checked) {
265
- this._checked = value;
+ set checked(value: BooleanInput) {
+ const checked = coerceBooleanProperty(value);
+
266
+ if (checked != this.checked) {
267
+ this._checked = checked;
268
this._changeDetectorRef.markForCheck();
269
270
0 commit comments