There is a conflict between Vue and Bootstrap when data-toggle="buttons" is mentioned in the code.
With that the highlighting of buttons work but the v-model array that the checkbox value is bound to is not updated.
If I remove that code, the highlighting of the selected button does not work. However, v-model starts working.
How to solve this issue?
HTML:
<div class="form-group">
<label class="searchLabel">Tool:</label>
<div class="btn-group-toggle" data-toggle="buttons">
<label class="btn btn-outline-primary m-1" v-for="tool in output.tool" >
<input type="checkbox" :value="tool.tool_id" v-model="availability">
{{tool.tool_name}}
</label>
</div>
</div>
Vue.JS:
new Vue({
el: '#dev',
data: {
output: {tool: []},
availability: []
}})