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

Issue with radio inputs since 4.9.0 #4308

Closed
2 of 5 tasks
kevincennis opened this issue Jun 5, 2023 · 1 comment
Closed
2 of 5 tasks

Issue with radio inputs since 4.9.0 #4308

kevincennis opened this issue Jun 5, 2023 · 1 comment
Labels
🐛 bug Unintended behavior

Comments

@kevincennis
Copy link

kevincennis commented Jun 5, 2023

What happened?

There seems to be an issue with radio input values not being captured since v4.9.0. As far as I can tell, this is only an issue when using slot/v-slot. A simple <field name="units" type="radio" value="Metric" v-model="units" /> does work as expected.

I believe this may be related to these changes, but have not had the time to dig in and prove that definitively.

Reproduction steps

I've not been able to figure out exactly when this does and doesn't work, but I do have a really simple test case attached.

A working example vith vee-validate@4.8.6 is located here. As you can see, checking either radio field causes the Selection to update.

When using the exact same code with vee-validate@4.9.0 or greater, Selection is never populated.

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

Relevant log output

No response

Demo link

https://codesandbox.io/s/vee-validate-4-9-0-radio-group-nfzqju?file=/src/App.vue

Code of Conduct

@logaretm logaretm added the 🐛 bug Unintended behavior label Jun 5, 2023
@logaretm
Copy link
Owner

logaretm commented Jun 6, 2023

This is indeed a bug, I have found the issue and fixed it. Will be released in the next minor release soon with v4.10 soon within the week.

Thanks for reporting it and for providing a great reproduction for it!

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