-
-
Notifications
You must be signed in to change notification settings - Fork 496
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
Vue 3 + vuelidate@next: $v.$error remains false #707
Comments
Thanks for reporting! This looks like a bug in collecting the statuses among nested trees. |
Related to this, if I'm understanding the docs right, I think the following are also bugs with this version:
|
The |
For me, the If |
Following on from what @MauroB45 has said, I agree that For example, many of our forms will have the Submit button disabled while any form field is I don't disagree with evaluation being lazy, but perhaps there should be an option to trigger evaluation when validation is first set up, that doesn't mark fields as |
Yup! This is something I've been thinking about. Having the validators lazy by default is pretty cool, but it definitely needs a way to be evaluated without being dirty. @dobromir-hristov whats your take here? Might also reverse it somewhat so that initial evaluation is the default behavior and the user is able to make it lazy through config. @aethr |
I have a Todo in the src we should fix this hehe |
This sounds ideal to me. Lazy evaluation could be a bit of a foot-gun if developers don't understand what it means for |
@shentao any update? |
Any update on this? My form has requeired fields but is $invalid="false" initially. This is not good. |
Not yet :( |
I have faced the similar issue and it seems to be related Here is my example: On the next branch: It works okey on master branch |
Should be fixed in latest version. |
@dobromir-hristov Is this fixed for vue2 v.0.7.7? I believe it's still failing for some reason. I appreciate your feedback. Thanks |
@bhaidar - 0.7.7 was not touched, it should work as it is. |
I'm using Vue 3 and Vuelidate@next and while $v.$invalid works $v.$error and $v.$dirty always remain false even though the individual validators show true (i.e. $v.password.$error returns true).
Sorry, couldn't figure out how to create a jsFiddle with vuelidate@next, but here is my relevant html and js:
Here is my full vue component if needed:
The text was updated successfully, but these errors were encountered: