I have these two content types with many to many relationships. Size and Menu Now in the current situation, I have created a size, assigned multiple menus, when I try to edit the size. the menus checkboxes are not reactive as you can see in the GIF, 5 menus are selected but when I uncheck one menu, two menus get unchecked. I don't know what I am missing here.
Input
<label v-for="(type,i) in menus" :key="i">
<p-check color="danger" name="ctype" class="p-default text-sm" v-model="contentTypes" :value="type.id">
<span class="text-base capitalize font-medium">{{type.title}}</span>
</p-check>
</label>
Computed Method
contentTypes: {
get: function () {
return this.editingTable.data.menus.map(e => e.id)
},
set: function (value) {
console.log(value)
}
},
Thanks