[Vuejs]-Adding a reactive object to an array of my Vue component

1👍

So, apparently b-form-checkbox from bootstrap-vue uses the id of the component to identify, which checkbox was clicked, instead of passing the value through and changing it.

So if the id of two checkboxes is equal, it changes the value of the first one by default. That’s why my component did not work.

Setting the id of the checkbox component to something like :id="'checkbox-' + vacation.id" fixes the issue.

Leave a comment