Skip to content

Commit

Permalink
fix(angular): adjust boolean accessor for two way binding
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Jan 8, 2022
1 parent 82d0b92 commit ed57dcc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export class BooleanValueAccessor extends ValueAccessor {
super(el)
}
writeValue(value: any) {
this.el.nativeElement.checked = this.lastValue = value == null ? false : value
this.el.nativeElement.value = this.lastValue = value == null ? false : value
}
}
36 changes: 18 additions & 18 deletions packages/components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
"license": "Apache-2.0",
"devDependencies": {
"@babel/core": "^7.16.0",
"@baloise/angular-output-target": "^1.0.19",
"@baloise/vue-output-target": "^0.6.0",
"@baloise/angular-output-target": "^1.0.25",
"@baloise/vue-output-target": "^0.6.6",
"@stencil/postcss": "^2.1.0",
"@stencil/react-output-target": "^0.2.0",
"@stencil/sass": "^1.5.2",
Expand Down

0 comments on commit ed57dcc

Please sign in to comment.