I'm attempting to create a functionality where checking one checkbox will uncheck another, similar to how radio buttons work. I'm relatively new to Vue.js, so I may be missing something in my code. Here are the two input elements:
<label for="'product-'+product.id"
class="none addon_label"
:class="{'addon_selected': !selected}"
>
<input class=""
type="checkbox"
:id="'product-'+product.id"
:value="false"
v-model="selected"/>
<div class="v-center">None</div>
</label>
<label :for="'product-'+product.id"
class="is_flex addon_label"
:class="{'addon_selected': selected}"
:data-product-id="product.id">
<div class="checkbox-container">
<input class=""
type="checkbox"
:value="true"
:id="'product-'+product.id"
v-model="selected"/>
</div>