I have generated multiple radio button groups in a page.Each group consists of two items - yes and no
<div v-if="row.answer_input_type === 'Radio Button'">
<template v-for="answer in answers" >
<template v-if="answer.AnswerTypeID === row.answer_type_id">
<template v-for="answerdesc in answer.AnswerDescription">
<p>{{answerdesc.AnswerMasterID}}</p>
<input type="radio" v-bind:value="answerdesc.AnswerMasterID" v-bind:name="row.question_id" v-bind:id="answerdesc.AnswerMasterID" v-bind:disabled="row.is_enabled == 1 ? false : true" v-on:click="rdoClick(row.question_id, answerdesc.AnswerMasterID)" v-model="answer.selected_option" />
<label v-bind:for="answerdesc.AnswerMasterID">{{answerdesc.AnswerDescription}}</label>
</template>
</template>
</template>
</div>
but whenever the selection is changed in a radio button group, the same is reflected in all the other radio button groups. That is if I select yes in one group in all the other group yes is selected. But the v-model is different for each. How to solve/correct this? thanks
row.question_idis different for each answer groupv-on:click? You shouldn't need that withv-model