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
After upgrading Vee-Validate from version 4.1.6 to 4.15.0, using resetField({ value: undefined }) prevents the form from becoming valid again, even after entering a new valid value.
Reproduction steps
Fill in a form field with a valid value.
Call resetField({ value: undefined }) to reset the field.
Enter a new valid value in the field.
Notice that the form remains invalid despite the correct input.
The form should become valid again once a new valid value is entered after resetting the field.
The problem seems to be that you're calling useField twice for the same field (in FirstStep.vue and TextInput.vue).
If you remove one of those calls, the form validation starts working again:
The problem seems to be that you're calling useField twice for the same field (in FirstStep.vue and TextInput.vue). If you remove one of those calls, the form validation starts working again:
Thanks a lot for your answer, it's of course a solution but I think there's something missing under the hood, cause a composable is meant to be used twice or more, unless I'm mistaken here ?
What happened?
After upgrading Vee-Validate from version 4.1.6 to 4.15.0, using resetField({ value: undefined }) prevents the form from becoming valid again, even after entering a new valid value.
Reproduction steps
The form should become valid again once a new valid value is entered after resetting the field.
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
Demo link
https://stackblitz.com/edit/vee-validate-v4-multi-step-form-composition-8hwywbjf?file=src%2Fcomponents%2FFirstStep.vue
Code of Conduct
The text was updated successfully, but these errors were encountered: