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 FieldArray I get unexpected behavior while using radio buttons. When deleting indexes the browser seems to lose the checked state on radio buttons sometimes. I have added reproduction steps and a code example below.
I have found that the issue lies in the usage of indexes as names, this seems to confuse the browser. Much more than that I do not know
Reproduction steps
Add a total of three items.
On index 0, check the first radio.
On index 1, check the second radio.
On index 2, check the first radio.
Remove index 0.
Notice that the old index 1 item becomes index 0, but its radio checked state is gone, while the HTML input element still has the attribute checked.
The text was updated successfully, but these errors were encountered:
Ellarddekoeijer
changed the title
<title>FieldArray doesn't work nicely with radio inputs
FieldArray doesn't work nicely with radio inputs
Mar 25, 2025
What happened?
When using FieldArray I get unexpected behavior while using radio buttons. When deleting indexes the browser seems to lose the checked state on radio buttons sometimes. I have added reproduction steps and a code example below.
I have found that the issue lies in the usage of indexes as names, this seems to confuse the browser. Much more than that I do not know
Reproduction steps
checked
.Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Demo link
https://codesandbox.io/p/devbox/7zqprr
Code of Conduct
The text was updated successfully, but these errors were encountered: