composition-api
composition-api copied to clipboard
bug: Template Refs don't work in render functions
đ The bug Template Refs in Render Functions don't work with nuxt-composition-api
đ ī¸ To reproduce Steps to reproduce the behavior:
- Create a component with some markup returned by a render function
- Assign a ref to one of the elements
- I created a minimal working example: https://codesandbox.io/s/suspicious-easley-sxwmx?file=/pages/index.vue
đ Expected behaviour
In the preview window My template ref is [object HTMLDivElement] should be shown, however My template ref is undefined is shown
âšī¸ Additional context For comparison, I created the same example using the vue-composition-api: https://codesandbox.io/s/compassionate-chaum-h9gjl?file=/src/App.vue
The latest version of nuxt/composition-api directly exports from render behaviour from vue itself. Would you check with the latest version to see if this is still an issue? đ
Closing due to no response from the reporter for almost a year.