so i have 3 buttons in a v-for loop with a click method in it.
I want to click on a button and disable the others, but also be able to click the active button and enable the other.
Thanks :)
'data': []
<div v-for="(index, value, key) in data.data">
<button @click="onClick(index)">
<div>{{ index.id }}</div>
</button>
</div>
onClick(index) {//}