b-form-radio-group not works with validations #6667
Answered
by
greg-vstorm
greg-vstorm
asked this question in
Q&A
-
I had issue with <ValidationProvider
v-slot="validationContext"
rules="required"
name="Gender"
>
<b-form-group
v-slot="{ ariaDescribedby }"
label="Gender"
:state="validationContext.errors[0] ? false : null"
:invalid-feedback="validationContext.errors[0]"
>
<b-form-radio-group
id="gender-group-1"
v-model="gender"
:options="genderOptions"
:aria-describedby="ariaDescribedby"
name="gender"
stacked
/>
gender value: "{{ gender }}"
</b-form-group>
</ValidationProvider> |
Beta Was this translation helpful? Give feedback.
Answered by
greg-vstorm
Jun 16, 2021
Replies: 1 comment 1 reply
-
Solution, thanks @Hiws is just remove |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
greg-vstorm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution, thanks @Hiws is just remove
v-slot="{ ariaDescribedby }"
and usage:aria-describedby="ariaDescribedby"
. All should works fine now.I write this for the future for someone who make mistake like mine.