vuejs / composition-api

Composition API plugin for Vue 2
https://composition-api.vuejs.org/
MIT License
4.19k stars 342 forks source link

fix: render function overloading #952

Closed nestle49 closed 2 years ago

nestle49 commented 2 years ago

🐛 The bug render function works with 2 params h(type, data) or h(type, children), but doesn't work with 3 params: h('div', {}, children)

🛠️ To reproduce Steps to reproduce the behavior:

  1. use h() with 3 params
  2. Children not render

https://codesandbox.io/s/nice-swirles-eqm642?file=/pages/index.vue Remove data prop "My template ref is ${myTemplateRef.value} and where children?," from example, and children will be displayed

I looked, it still stretches from vue-composition-api, so I also created issue there: However, I'm not 100% sure what the problem is vue-composition-api

upd. Problem arises only with data contains domProps, render collision

github-actions[bot] commented 2 years ago

Stale issue message