Subscribe on changes!

Transition on element without any child

avatar
Feb 9th 2021

Version

3.0.5

Reproduction link

https://jsfiddle.net/f74pxo2h/

  <transition name="empty">
    <div></div>
  </transition>

Steps to reproduce

as shown in JSFiddle

What is expected?

Render component properly

What is actually happening?

Crashed with: TypeError: Cannot read property 'length' of null

avatar
Feb 9th 2021

if we add v-if or v-show or some children to the div, it will work properly. sample:

<transition name="empty">
    <div>Some content</div>
</transition>
<transition name="empty">
    <div v-if="visible"></div>
</transition>
avatar
Feb 9th 2021

Not yet released