Closed PablitoDh closed 1 day ago
Initial values were never meant to be reactive. This is because useField
does everything defineModel
does including syncing the value with the modelValue
prop and using both is a bit redundant.
Initial values will only be read once at initialization/mount. We even typed the values to not accept any reactive refs to encourage people from doing that.
Can you try removing defineModel
and enable { syncVModel: true }
on useField
to see if everything works?
What happened?
After updating vee-validate from version 4.6.2 to 4.13.2, setting the initial value in a custom input stopped working. The same issue occurred with version 4.7.x.
Reproduction steps
1. 2. 3. ...
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
c
Code of Conduct