We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
resetForm()
Called resetForm() on a multi-step form does not reset the form, or only resets the last step.
Form is not reset.
Vue.js 3.x and vee-validate 4.x
No response
https://stackblitz.com/edit/vee-validate-v4-multi-step-form-composition-5epvz3?file=src%2FApp.vue
The text was updated successfully, but these errors were encountered:
useForm doesn't work like that. It doesn't give you access to rendered forms.
useForm
You can use defineExpose to expose the resetForm on the FomWizard component and then use ref to access the form component instance and call it.
defineExpose
resetForm
FomWizard
ref
Here is an example:
https://stackblitz.com/edit/vee-validate-v4-multi-step-form-composition-ups4hf?file=src%2FApp.vue,src%2Fcomponents%2FFormWizard.vue
Sorry, something went wrong.
No branches or pull requests
What happened?
Called
resetForm()
on a multi-step form does not reset the form, or only resets the last step.Reproduction steps
Form is not reset.
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
https://stackblitz.com/edit/vee-validate-v4-multi-step-form-composition-5epvz3?file=src%2FApp.vue
Code of Conduct
The text was updated successfully, but these errors were encountered: