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

Error shown after field values are reverted to their initial state with resetForm #4467

Closed
1 of 5 tasks
AndColla opened this issue Sep 8, 2023 · 1 comment
Closed
1 of 5 tasks
Labels
🐛 bug Unintended behavior

Comments

@AndColla
Copy link

AndColla commented Sep 8, 2023

What happened?

I have created a Select component in my nuxt 3 project with the useField composable.
The select field is made required using @vee-validate/rules
If I submit the form and then call resetForm(), all values are reverted, but the error message pops up saying the select field is required.

Reproduction steps

No response

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://stackblitz.com/edit/nuxt-starter-cwtjux?file=components%2FCustomSelect.vue

Code of Conduct

@logaretm
Copy link
Owner

logaretm commented Sep 9, 2023

Thanks for reporting this, looks related to #4451

@logaretm logaretm added the 🐛 bug Unintended behavior label Sep 9, 2023
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