Skip to content
Permalink
Browse files

fix(angular): default value of BooleanValueAccessor should be false (#…

  • Loading branch information...
MarkChrisLevy authored and manucorporat committed Nov 22, 2018
1 parent ce1fcea commit 429e08344afb8a0e2b4c43c031d04fceced462e0
Showing with 1 addition and 1 deletion.
  1. +1 −1 angular/src/directives/control-value-accessors/boolean-value-accessor.ts
@@ -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);
}

0 comments on commit 429e083

Please sign in to comment.
You can’t perform that action at this time.