issue with toRef
Version
3.2.31
Reproduction link
Steps to reproduce
prop not being updated after children emit, see link to playground
What is expected?
component emit update:modelValue to parent
What is actually happening?
nothing
props are read only,
toRef
on a prop is still read only.
so should i emit update:modelValue watching a regular ref?
with a writable computed as the model, emit the value on set https://vuejs.org/guide/essentials/computed.html#writable-computed
or more low level
<input :value=props.modelValue @input="(e)=> emit('update:modelValue', e.target.value)">
@lidlanca thanks! both suggestions works!