composition-api icon indicating copy to clipboard operation
composition-api copied to clipboard

bug: Template Refs don't work in render functions

Open jonashe opened this issue 3 years ago â€ĸ 1 comments

🐛 The bug Template Refs in Render Functions don't work with nuxt-composition-api

đŸ› ī¸ To reproduce Steps to reproduce the behavior:

  1. Create a component with some markup returned by a render function
  2. Assign a ref to one of the elements
  3. 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

jonashe avatar Dec 07 '21 15:12 jonashe

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? 🙏

danielroe avatar Jul 11 '22 11:07 danielroe

Closing due to no response from the reporter for almost a year.

rchl avatar Mar 30 '23 22:03 rchl