I want to do this without displaying all the validation errors that come with the blank fields. Using this.$resetValidation() before/after doing doesn't seem to help out with that, unless I throw it in window.setTimeout, but there's still a flash of errors that way.
If I could pause validation, make my changes, then start up again, that would be super helpful:
I have a form I'm submitting async with vue-resource. After submission, I want to reset the form so that it can be resubmitted.
I'm resetting the values by looping through the
v-model
s and setting them to empty strings.I want to do this without displaying all the validation errors that come with the blank fields. Using
this.$resetValidation()
before/after doing doesn't seem to help out with that, unless I throw it inwindow.setTimeout
, but there's still a flash of errors that way.If I could pause validation, make my changes, then start up again, that would be super helpful: