how to migrate v-model
to setFieldValue
?
#4432
Replies: 2 comments 1 reply
-
First, that was never encouraged in the docs to begin with and now I've added more docs to that area in the guide section. So you have a few ways to migrate to:
const proxy = computed({
get: () => values[field],
set(value) {
setFieldValue(field, value);
}
})l But that's basically the same outcome, you will need to define your fields. Another alternative entirely is to use If none of these are good alternatives for you then I suppose I could expose a writable version of |
Beta Was this translation helpful? Give feedback.
-
How to I convert the input value to number? |
Beta Was this translation helpful? Give feedback.
-
in v4.6.6 I used to do the following
v-model="values.something"
just to provide a starting value for the child component. That will now cause a readonly warning. if I just do:modelValue
the value also does not get updated from the input.Beta Was this translation helpful? Give feedback.
All reactions