Closed
Description
Vue version
3.5.16
Link to minimal reproduction
Steps to reproduce
Make two components, parent & child. In the child component, use defineModel to define someModelValue
. In the parent component use the child component and define a ref (called someRef
). The ref is used in the parent on the v-model directive on the child component v-mode:someModelValue="someRef"
. In a function in the child component, update modelValue.value
and, in the next line, read it out.
What is expected?
It is expected that when you assign a value to someModelValue.value
you can immediately read out this value again in any expressions below in the same code block.
What is actually happening?
When someModelValue.value
is used in a line immediately below the assignment it still retains its previous value.
System Info
Any additional comments?
As you see in the example, it only fails if v-model
is used.
Metadata
Metadata
Assignees
Labels
No labels