Using a builtin tree-shakable component like <transition>
in a dynamic component requires manual import.
#554
Labels
enhancement
New feature or request
Version
3.0.0
Reproduction link
https://jsfiddle.net/sarangnx/t9L4fznc/23/
Steps to reproduce
When you click on the button, only first two components are having correct transitions, the third one is not behaving as expected.
What is expected?
It is expected the following two code,
to work exactly same way, and render as given below in browser.
What is actually happening?
The third component given in the jsFiddle (one using dynamic component) is rendered in the browser as below.
instead of just this
It seems like vue has not identified the component, so just replacing it like a
<div>
tag.Ultimate goal was to build a reusable transition component with slots, and switch between using
<transition>
and<transition-group>
with the help of dynamic components<component :is="group ? 'transition-group' : 'transition' ">
.The text was updated successfully, but these errors were encountered: