Skip to content

Commit

Permalink
fix(#1539): checkbox behavior with value 0 (#1541)
Browse files Browse the repository at this point in the history
This PR prevents that 0 is automatically checked when another option is selected in the filter.

Closes #1539
  • Loading branch information
leiyre committed Jun 6, 2022
1 parent ea77334 commit 0b9e54a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/components/core/ReCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ export default {
classes() {
return {
checked: Array.isArray(this.areChecked)
? this.areChecked.includes(this.value) ||
_.find(this.areChecked, this.value)
? Array.isArray(this.areChecked)
? this.areChecked.includes(this.value)
: _.find(this.areChecked, this.value)
: this.checked,
disabled: this.disabled,
};
Expand Down

0 comments on commit 0b9e54a

Please sign in to comment.