Reset form while keeping the values of its fields #4610
Unanswered
robsonsobral
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm trying to clean the dirty state of a form after its submission, but I can't find a way to keep the filled values.
I've tried
resetForm({ values });
after a successful submission, but the values of the fields get all purged. For now, my solution was to clonevalues
to a non-reative object.As I'm already using Lodash, it's a valid option. However, I would like to know whether there's a simpler way to do that. Any alternative?
I'm running VueJS 3.2.47 and VeeValidate 4.7.4.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions