-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transition not triggering @appear when used as the root of a component with appear attr #9364
Comments
Consider this snippet (and comment) vue/src/platforms/web/runtime/modules/transition.js Lines 62 to 74 in 0b16927
Also, from the docs "If you also want to apply a transition on the initial render of a node". Since the |
From my perspective, the behaviour is not consistent as the appear does trigger if the |
closed via #9668 |
Version
2.5.22
Reproduction link
https://codepen.io/bogdan-muranets/pen/ErjOXy
Steps to reproduce
Open repro, click on the "show" button and note that "animated on enter" text appeared.
What is expected?
To see a text "animated on appear" which has to be added by
@appear
hook.What is actually happening?
The
@enter
hook is called instead of@appear
.Important is that
transition
is moved to separate component. Also, everything works as expected iftransition
isn't a root element in a separate component or the component isfunctional
.The text was updated successfully, but these errors were encountered: