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

FieldArray retained the error message from the previous and untriggered validation #4476

Closed
2 of 5 tasks
ianlailai opened this issue Sep 18, 2023 · 1 comment · Fixed by #4560
Closed
2 of 5 tasks
Labels
🐛 bug Unintended behavior 🛳 In PR This issue is being addressed in a PR

Comments

@ianlailai
Copy link

ianlailai commented Sep 18, 2023

What happened?

When adding and deleting individual items repeatedly in the presence of an error message, the error message does not correspond correctly.

Demo link operation Steps:

  1. add (use prepend) two items
  2. trigger first item validation, show the error message
  3. remove the fist item

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/7uqw1k?file=src%2FApp.vue

Code of Conduct

@ianlailai ianlailai changed the title fieldArray retained the error message from the previous and untriggered validation FieldArray retained the error message from the previous and untriggered validation Sep 18, 2023
@logaretm logaretm added the 🐛 bug Unintended behavior label Nov 18, 2023
@logaretm
Copy link
Owner

Looks like an issue with prepend and remove where fields temporarily overlap. I will try to figure out a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Unintended behavior 🛳 In PR This issue is being addressed in a PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants