I'm using Vue3 with the composition API. In a form-component I put ref's on each field (child-component).
For some reason the ref
's of the custom components are different from ref
's for Quasar components.
When I console.log
a ref
to a custom component I get this in DevTools:
Proxy {__v_skip: true}
(without any properties in Target)
while a ref to a Quasar components gives this :
Proxy {…}
(with all properties of the component in Target)
For this reason I can't use the ref
to access properties or methods of these child components.
I have no idea what __v_skip
even means.
My custom components are defined with script setup
, could that be a reason?
Any idea how to fix this?
UPDATE
If I use defineExpose
in the child components for the properties and methods I want to access from outside with a ref
, it does work. Not really handy though, since these components have lots of props.