useForm with schema and reactive initialValues behave differently on update #4347
Closed
2 of 5 tasks
Labels
🐛 bug
Unintended behavior
What happened?
on initial render the
initialValues
are passed throughschema.cast
https://github.com/logaretm/vee-validate/blob/v4.10.5/packages/vee-validate/src/useForm.ts#L102
and on updates of
initialValues
it does not, resulting in differentinitialValues
statehttps://github.com/logaretm/vee-validate/blob/v4.10.5/packages/vee-validate/src/useForm.ts#L1077C17-L1077C17
Reproduction steps
schema.cast
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
https://stackblitz.com/edit/vee-validate-v4-starter-composition-example-gp2dxq?file=src%2FApp.vue
Code of Conduct
The text was updated successfully, but these errors were encountered: