v-model for component doesn't work as expected.
Version
3.2.31
Reproduction link
Steps to reproduce
- change the v-model value and emit
update:modelValue
event in the child component. - The value doesn't change in the father component.
What is expected?
When change the v-model value in child component, the value should change in the father component.
What is actually happening?
The value of v-model variable in the father component doesn't change.
This bug doesn't appear in setup script
. This bug can only be reproduced when the father component uses setup option
.