Skip to content

Commit

Permalink
fix(angular): default value of BooleanValueAccessor should be false (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkChrisLevy authored and manucorporat committed Nov 22, 2018
1 parent ce1fcea commit 429e083
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 429e083

Please sign in to comment.