The Wayback Machine - https://web.archive.org/web/20220718112358/https://github.com/vuejs/vue/issues/12676
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
Version
2.7.7
Reproduction link
codesandbox.io
Steps to reproduce
steps one
Define a props component that receives an array type
steps two
Call it in the parent component and use the v-model to bind an object returned by the toRefs method
steps three
The child component props validation returns an error
steps four
In this case, v-model= value of ref object can be used normally
What is expected?
The toRefs method is expected to return a Ref object or a Reactive object based on the data type in the reactive object
What is actually happening?
The toRefs method returns only Ref objects, which requires a ref.value object to be used when calling child components in the template
Using Ref objects in templates should not require a.value
The text was updated successfully, but these errors were encountered: