Currently, my setup involves three buttons displayed using a v-for loop, each with its own click method.
I'm trying to implement a feature where clicking on one button disables the others, but also allows clicking on the active button to re-enable all of them again.
Any advice or suggestions on how I can achieve this would be greatly appreciated!
'data': []
<div v-for="(index, value, key) in data.data">
<button @click="onClick(index)">
<div>{{ index.id }}</div>
</button>
</div>
onClick(index) {//}