1👍
✅
You don’t need to bind the v-model
to an index of the checkboxes
array.
Try changing it from
v-model="checkboxes[0]" // also checkboxes[1], checkboxes[2], etc
to
v-model="checkboxes"
Vue automatically handles binding of checkboxes as described in the docs
If you do what you’re doing, the array becomes filled with undefined/true
instead of the value of the checkboxes.
This can lead to conflicts and issues with resetting their state.
Source:stackexchange.com