-
-
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
Vee Validate overriding component model value. #4283
Comments
Ok.. after much frustration, I found this; Sure enough, setting However - I think its worth discussing having this value default to |
I think yes, that would have been a better default. However, it is too late to turn it off now because people are probably using it. The rationale then was that people struggled with syncing I'm in the process of re-writing the composition API docs which will include a guide page dedicated to building form inputs with |
I understand. However, having recently moved a project to Vue 3 and the Composition API - I think leaving a library in this state is only going to cause further confusion for others - especially given the state of A composable that forcefully overwrites the modelValue of a component seems particularly bad form - since there's no visible indication as to why its happening - nor any configuration user side to indicate this. So - I implore you to re-consider - but understand this is your choice. Thanks! |
Perhaps another option;
Would it make sense for the default to NOT apply if you have more than one This way you could still keep your existing default whilst avoiding some of the impact of having it default to true. |
I though about it again and I I'm disabling it by default for
So I decided to disable it, thanks for suggesting this and pushing it, I think it should've been opt-in from the start. |
@logaretm this change has completely broken our application and took hours to investigate. This breaking change should have been done in the next MAJOR version, with accompanying migration guide! Please refrain from making future breaking changes without a MAJOR version. |
What happened?
Vue 3.3.4
Vuetify 3.2.5 (same result with 3.3)
Vee-Validate 4.9.4
Given the above component, the modelValue and someField are now tightly bound in that they both represent the same value when they should not. I.e., if you put a button that adjusts the value of
value.value = false
the model would incorrectly close.I'm having trouble figuring out if this is something I'm doing, or if this is a
Vee-Validate
issue. But it sure seems strange thatVee-Validate
would be overriding the model prop on the component in this way.Reproduction steps
No response
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
NA
Code of Conduct
The text was updated successfully, but these errors were encountered: