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
I have a form that I would like to send. Within this form, I generate new fields depending on the number of data records. If I now edit one of these fields, all data records are edited and changed.
The validation does not work either and only the last field is validated.
However, only the visible fields are changed. The ID, for example, remains the same as long as it is not displayed in any input.
If I now omit the “form” around the fields, everything works.
The field has no idea it is a part of a loop. You should ensure that each field name is unique either by using indexes as part of the name. Alternatively consider using Field Arrays.
I have now tested a few things, but have not come to any conclusions.
Even if I add an ID to the “name” attribute in the input, it doesn't work.
With field arrays, I have to use an initial-values in the form, but I can't do that because the data is loaded later. I do know which fields will arrive, but these fields are not displayed.
Could you please help me here, I'm getting desperate about the whole thing
What happened?
I have a form that I would like to send. Within this form, I generate new fields depending on the number of data records. If I now edit one of these fields, all data records are edited and changed.
The validation does not work either and only the last field is validated.
However, only the visible fields are changed. The ID, for example, remains the same as long as it is not displayed in any input.
If I now omit the “form” around the fields, everything works.
Github Link to Repo: https://github.com/dennismetz/veevalidate-bug
Reproduction steps
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
Demo link
https://codesandbox.io/p/github/dennismetz/veevalidate-bug/
Code of Conduct
The text was updated successfully, but these errors were encountered: