Form validation for Vue.js 2.2+
-
Updated
Dec 13, 2019 - JavaScript
Add a description, image, and links to the async-validation topic page so that developers can more easily learn about it.
To associate your repository with the async-validation topic, visit your repo's landing page and select "manage topics."
What
I suggest to make the return statement of
form.submit()unified for all its branching.Why
Current behavior
Now calling
form.submit()returns two different things based on the validity of a form:undefinedif a form is invalid.Promise<response>after the dispatchedaction.Expected behavior
Calling
form.submit()always returns