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 6b7af23 commit ba79f28Copy full SHA for ba79f28
projects/components/src/checkbox/checkbox.component.ts
@@ -33,7 +33,7 @@ export class CheckboxComponent implements ControlValueAccessor {
33
34
@Input()
35
public set checked(checked: boolean | undefined) {
36
- this.isChecked = checked;
+ this.isChecked = checked ?? false;
37
}
38
39
public get checked(): boolean | undefined {
@@ -55,7 +55,7 @@ export class CheckboxComponent implements ControlValueAccessor {
55
@Output()
56
public readonly checkedChange: EventEmitter<boolean> = new EventEmitter();
57
58
- public isChecked?: boolean = false;
+ public isChecked: boolean = false;
59
public isDisabled: boolean = false;
60
61
private onTouched?: () => void;
0 commit comments