I'm trying to utilize radio buttons to make a simple accordion in vue. Everything works except I can't get the accordion to only show a single view at once.
Once the view has been expanded I seem to longer be able to close it without creating a separate v-model for the whole group and adding a conditional around it. Is it not possible to get a radio button to default to its off state after it is no longer selected?
<div v-for="(item, index) in options">
<label :for="'l' + item.name">{{ item.name }}</label>
<input type="radio" :id="'l' + item.name" name="internalFinish" v-model="item.selected" :value="true">
<div v-if="item.selected">
<p>Accordion Open</p>
</div>
</div>