-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
exclude nested forms from validation #2632
Conversation
If a v-form contains a v-dialog which in turn contains another v-form, then it breaks the validation of the outer form, since inputs of the inner form affect the outer one.
Codecov Report
@@ Coverage Diff @@
## master #2632 +/- ##
==========================================
- Coverage 68.19% 68.14% -0.05%
==========================================
Files 118 118
Lines 3147 3149 +2
Branches 996 997 +1
==========================================
Hits 2146 2146
- Misses 716 718 +2
Partials 285 285
Continue to review full report at Codecov.
|
Please do not push with --no-verify. |
I did not use any |
The test is re-running, but it had previously failed with lint errors, you shouldn't be able to commit or push with test/lint errors without --no-verify. |
I used the GitHub web UI for this small change. Did a full checkout now since I saw the linter errors. |
CI is happy now, but codecov isn't. Unfortunately I don't have the time to get to know your testing setup and a test case with a nested v-form and triggering validation seems non-trivial. What's your policy on this? |
You can ignore that, it's thinking there's changes in VTimePicker for some reason. |
Okay, thanks. So is this a good solution and ready to merge? |
It's a solution for now. Forms will most likely be refactored to use inject/provide for 1.1. Although I am actually not sure how to solve this problem when we do.. edit: nevermind, it should be automatically solved by using inject/provide |
Forms are currently being refactored to use provide/inject for 1.1. Was already mentioned here #2033. Thank you for your contribution. |
If a v-form contains a v-dialog which in turn contains another v-form, then it breaks the validation of the outer form, since inputs of the inner form affect the outer one.
Is this an acceptable solution to the issue?