<transition> with a single, empty child throws an error #3133
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
scope: transition
Version
3.0.5
Also reproducible in 3.0.4. It works fine in 3.0.3.
Reproduction link
https://jsfiddle.net/skirtle/be5o7zv9/
Arguably, the example above is invalid because it uses a single, fixed child inside a
<transition>
. A more realistic example that exhibits the same problem would be:https://jsfiddle.net/skirtle/xr6pnLhc/1/
In both cases the problem goes away if the empty
<div>
is given some content, or if you addv-if="true"
to it.What is actually happening?
The error is:
This was originally reported as a documentation bug (see vuejs/docs#827). One of the CodePen examples in the documentation used a
<slot>
inside a<transition>
, similar to the second example above. That example has been patched up to avoid this error until it can be fixed properly.The text was updated successfully, but these errors were encountered: