We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7deb30d commit 190f67aCopy full SHA for 190f67a
src/fields/core/fieldChecklist.vue
@@ -68,12 +68,13 @@
68
},
69
70
onChanged(event, item) {
71
- if (isNil(this.value))
+ if (isNil(this.value) || !Array.isArray(this.value)){
72
this.$set(this, "value", []);
73
+ }
74
- if (event.target.checked)
75
+ if (event.target.checked) {
76
this.value.push(this.getItemID(item));
- else {
77
+ } else {
78
this.value.splice(this.value.indexOf(this.getItemID(item)), 1);
79
}
80
0 commit comments