Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v4] Radio bug when works with an array data #3141

Closed
midrock opened this issue Jan 25, 2021 · 1 comment
Closed

[v4] Radio bug when works with an array data #3141

midrock opened this issue Jan 25, 2021 · 1 comment
Labels
🐛 bug Unintended behavior

Comments

@midrock
Copy link

midrock commented Jan 25, 2021

Versions

  • vee-validate: 4.1.11
  • vue: 3.0.4

Describe the bug
When working with complex data inside an array, radio input clear their own value if we delete top array members.

To reproduce
Steps to reproduce the behavior:

  1. Go to Sandbox
  2. Make 2 users
  3. Select radio value for the second user
  4. Remove the first user
  5. The second user now at first place with empty radio input

Expected behavior
The selected value for the radio value is not reset

Demo link
https://codesandbox.io/s/vee-validate-array-fields-forked-wxxuq?file=/src/App.vue

@midrock midrock changed the title Radio bug when works with an array data [v4] Radio bug when works with an array data Jan 25, 2021
@logaretm logaretm added the 🐛 bug Unintended behavior label Jan 26, 2021
@logaretm
Copy link
Owner

Thank you for reporting this with an example, I have identified the issue and solved it. The fix is live now with 4.1.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants