-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Use of validateAll(scope) breaks required rule on list of select inputs #923
Comments
You are correct, calling |
Thanks! :) |
I found the problem, for starters it only occurs with Vue This is similar to #804 but not easily as fixable, because when you don't call Fixing it would require a different way of retrieving |
This has been fixed finally in the v3 branch, as the directive has been re-written. |
Thanks @logaretm! |
Versions:
Description:
I have a dynamic list of select inputs with the required rule on them. These select inputs use a certain scope. Within that scope, I also have a custom component that is not bound using
v-model
since it renders an array, so after the data for that component changes I just callvalidateAll(scope)
on$nextTick
because otherwise the initial validation for that custom component doesn't work. This works fine, but strangely enough when usingvalidateAll(scope)
the required rule on the list of select inputs breaks. This puts me in the awkward position that whether I add or removevalidateAll
, some validation is always broken. I may refactor all this code in the future, but in the meantime I don't think callingvalidateAll(scope)
should break anything.Steps To Reproduce:
https://jsfiddle.net/kt2r8r60/5/
The text was updated successfully, but these errors were encountered: