vuejs / composition-api

Composition API plugin for Vue 2

Home Page:https://composition-api.vuejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix: render function overloading

nestle49 opened this issue Β· comments

πŸ› 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

Stale issue message