Transition on element without any child
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
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>