Open hootlex opened 8 years ago
Thank you for your feedback.
Yeah, you’re right. vue-validator v2 have some issues around the validation.
I'll try to improve the vue-validator v3, and it support the vue 2.0 please waiting. :)
Sure, no problem. :)
Consider adding an errorDisplay
helper in v3.
Also, a showAllErrors
method would be a nice to have.
Good job with vue-validator so far.
Yes, adding such a functionality comes in really handy. I got the same problem. If you add this to v3 would be great - but please also add it to v2 as well. At my current project I'm using laravel spark which uses vuejs 1.x and I'm bind to that - unless Taylor Otwell updates Spark to use vuejs 2 I'm stuck to vuejs 1.x and so are many others (for various reasons)
I was using
initial="off"
to all the forms which needed validation. I experienced a lot of issues (that I can't reproduce right now) and ended up usinginitial="on"
.The main drop off of initial validation is that error messages are displayed before user interaction. To bypass this, I created a helper method which defines if an error should be shown.
So, I thought that it would be great to have a field method, which would actually do this check out of the box. For example
$validation.address.required.dirty
or$validation.address.notInitial('required')
.What do you say about that?