You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using <b-radio> in conjunction with v-for the correct radio is not checked ...
Steps to reproduce
<divclass="block"><b-radio-groupv-model="internal.service_id"><b-radio:value="service.id" :key="service.id" v-for="service in actor.services">
{{service.name}}
</b-radio></b-radio-group></div>
Knowing data is :
data(){return{internal: {service_id: 'Matching id to one of the radio',}}}
Expected behavior
The radio with a value matching the v-model should be checked.
Actual behavior
The radio with a value matching the v-model is not checked.
Potential fix
Adding this.$parent.initChecked() in created() call in Radio.vue is one way to fix the problem.
The text was updated successfully, but these errors were encountered:
Tirke
changed the title
Incorrect behavior when using <b-radio> in conjunction with v-for
Incorrect behavior when using b-radio in conjunction with v-for
Jul 28, 2017
Overview of the problem
Buefy & Vuejs @latest
Description
When using
<b-radio>
in conjunction withv-for
the correct radio is not checked ...Steps to reproduce
Knowing data is :
Expected behavior
The radio with a value matching the v-model should be checked.
Actual behavior
The radio with a value matching the v-model is not checked.
Potential fix
Adding
this.$parent.initChecked()
increated()
call inRadio.vue
is one way to fix the problem.The text was updated successfully, but these errors were encountered: