mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
fix(angular): default value of BooleanValueAccessor should be false (#16420)
This commit is contained in:
@ -21,7 +21,7 @@ export class BooleanValueAccessor extends ValueAccessor {
|
||||
}
|
||||
|
||||
writeValue(value: any) {
|
||||
this.el.nativeElement.checked = this.lastValue = value == null ? '' : value;
|
||||
this.el.nativeElement.checked = this.lastValue = value == null ? false : value;
|
||||
setIonicClasses(this.el);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user