File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -244,8 +244,9 @@ export class MatCheckbox extends _MatCheckboxMixinBase implements ControlValueAc
244244 @Input ( )
245245 get checked ( ) : boolean { return this . _checked ; }
246246 set checked ( value : boolean ) {
247- if ( value != this . checked ) {
248- this . _checked = value ;
247+ const checked = coerceBooleanProperty ( value ) ;
248+ if ( checked != this . checked ) {
249+ this . _checked = checked ;
249250 this . _changeDetectorRef . markForCheck ( ) ;
250251 }
251252 }
@@ -490,6 +491,7 @@ export class MatCheckbox extends _MatCheckboxMixinBase implements ControlValueAc
490491 }
491492 }
492493
494+ static ngAcceptInputType_checked : BooleanInput ;
493495 static ngAcceptInputType_disabled : BooleanInput ;
494496 static ngAcceptInputType_required : BooleanInput ;
495497 static ngAcceptInputType_disableRipple : BooleanInput ;
You can’t perform that action at this time.
0 commit comments