Replies: 1 comment
-
The reason you get kicked out of the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are using an
onBlurAsync
validator on one of our fields.If we call
handleSubmit()
on the form while this validator is still running,handleSubmit()
seems to simply abort:onSubmit()
noronSubmitInvalid()
callbacks are called.Looking at the code, do we maybe get kicked out here?
form/packages/form-core/src/FormApi.ts
Line 1766 in 0d949d6
We have tested this with
@tanstack/vue-form
versions 1.11.1 and 1.12.3.Steps to reproduce:
onBlurAsync
validator to a field.handleSubmit()
.onSubmit
noronSubmitInvalid
is called.Expected:
handleSubmit()
should wait for all async validators to finish before proceeding and finally call onSubmit() if the form is valid.Beta Was this translation helpful? Give feedback.
All reactions