New issue
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
this.$validator.validateAll() not working correctly, always submitting form #592
Comments
Do you check the result of validation within .then() like it is described in rc6 comment? |
Unfortunately there was a breaking change introduced in rc6 which is explained in detail over there on the releases page, the docs hasn't been updated yet to reflect those changes. |
When I expect the new updated documentation or Alternative way to achieve the same behavior |
Same behavior |
mmp |
same issue here |
Ok I found this in the release comments this.$validator.validateAll(result => { // submit the form or whatever. However the code doesn't seem to work by my side (nothing happen) |
Ok I got it working this.$validator.validateAll().then((result) => { |
@clecocq Thanks for pointing that out, there was a mistake in release notes that was fixed now. |
I had an issue with running validateAll() with a complex component: a combobox that converts entries into chips. If I entered a value into the combo, then clicked save (without the combo first losing focus), validateAll returned the incorrect value because the execution of the combobox didn't complete before the validate. I wrapped the whole thing in setTimeout to push validateAll to the bottom of the call stack, then everything was ok: |
Versions:
Description:
Submitting form with errors pass the validation, executes the .then() from the promise..
Going back to rc4
The text was updated successfully, but these errors were encountered: