mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +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) {
|
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);
|
setIonicClasses(this.el);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user