Default value of defineModel is not handled as a local ref
Vue version
3.4.15
Link to minimal reproduction
Steps to reproduce
Just start typing in one text input to update the relative object
What is expected?
The default value passed inside defineModel should be handled as a top level property and unwrapped correctly inside the template.
What is actually happening?
The ref is not unwrapped so it is not updated
System Info
No response
Any additional comments?
VSCode tooltip on defineModel report this: " ...The the returned ref behaves differently depending on whether the parent provided the corresponding v-model props or not:
If yes, the returned ref's value will always be in sync with the parent prop. If not, the returned ref will behave like a normal local ref. "
So if no value is provided it should behave like a normal local ref