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

(cherry picked from commit 0b9e54a)
  • Loading branch information
leiyre authored and frascuchon committed Jun 7, 2022
1 parent 8b83a82 commit 7a0ab63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/components/core/ReCheckbox.vue
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 7a0ab63

Please sign in to comment.