Skip to content

Commit ba79f28

Browse files
committed
refactor: revert checkbox change
1 parent 6b7af23 commit ba79f28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/components/src/checkbox/checkbox.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class CheckboxComponent implements ControlValueAccessor {
3333

3434
@Input()
3535
public set checked(checked: boolean | undefined) {
36-
this.isChecked = checked;
36+
this.isChecked = checked ?? false;
3737
}
3838

3939
public get checked(): boolean | undefined {
@@ -55,7 +55,7 @@ export class CheckboxComponent implements ControlValueAccessor {
5555
@Output()
5656
public readonly checkedChange: EventEmitter<boolean> = new EventEmitter();
5757

58-
public isChecked?: boolean = false;
58+
public isChecked: boolean = false;
5959
public isDisabled: boolean = false;
6060

6161
private onTouched?: () => void;

0 commit comments

Comments
 (0)