Skip to content
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

UseField update:modelValue not emitting with complex data types #4962

Open
3 of 5 tasks
diegocsan opened this issue Dec 13, 2024 · 0 comments
Open
3 of 5 tasks

UseField update:modelValue not emitting with complex data types #4962

diegocsan opened this issue Dec 13, 2024 · 0 comments

Comments

@diegocsan
Copy link

What happened?

When I try to use useField with complex data types such as arrays or objects, update:modelValue is not emitted when pushing or changing key values. I use syncVModel, and works as expected with textFields, but not with arrays.

Is this the expected behaviour with complex data types and useField or am I doing something wrong? Thanks in advance.

Reproduction steps

  1. Add a component with a complex data type v-model
  2. Configure useField with syncVModel, initialValues...
  3. Watch for the update:modelValue event

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

Relevant log output

No response

Demo link

https://stackblitz.com/edit/github-bjpbj3du?file=src%2Fcomponents%2FHelloWorld.vue

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant