We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently $anyError uses this expression according to the docs:
this.$anyDirty && !this.$pending && this.$invalid
This is wrong because a form can be $invalid and $anyDirty but not having any single $error in the validation tree.
$invalid
$anyDirty
$error
For example, you only have required fields.
{ $invalid: true, $anyDirty: false, $anyError: false }
$dirty
{ $invalid: true, $anyDirty: true, $anyError: true }
It should be { $invalid: true, $anyDirty: true, $anyError: false } because we don't display any error.
{ $invalid: true, $anyDirty: true, $anyError: false }
This is very anoying if we want to disable the submit button as long as at least one error is shown.
The text was updated successfully, but these errors were encountered:
Fix $anyError
9e15b22
Close vuelidate#315
Any ETA on getting this merged? Running into this in our system and would like to get it finished up
Sorry, something went wrong.
Adds fix for vuelidate#315
b22a858
Currently waiting on PR vuelidate#316 to be merged but need this fix now
Successfully merging a pull request may close this issue.
Currently $anyError uses this expression according to the docs:
This is wrong because a form can be
$invalid
and$anyDirty
but not having any single$error
in the validation tree.For example, you only have required fields.
{ $invalid: true, $anyDirty: false, $anyError: false }
and no errors are displayed (yet)$dirty
$dirty
(the user hasn't come to those yet){ $invalid: true, $anyDirty: true, $anyError: true }
It should be
{ $invalid: true, $anyDirty: true, $anyError: false }
because we don't display any error.This is very anoying if we want to disable the submit button as long as at least one error is shown.
The text was updated successfully, but these errors were encountered: