-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
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
First enter doesn't trigger transition #3559
Comments
|
You need to use the |
Thanks. |
Yeah this is pretty hidden in the docs: http://rc.vuejs.org/guide/transitions.html#Transitions-on-Initial-Render |
yyx990803
added a commit
that referenced
this issue
Aug 30, 2016
This is indeed a bug, fixed in commit referenced above. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vue.js version
2.0.0-rc.4
Reproduction Link
https://jsfiddle.net/uur9e91L/1/
Steps to reproduce
Click the toggle button
What is Expected?
On first click, the content fades in.
What is actually happening?
On first click, the content doesn't fade in. It only fades in/out on the following clicks.
This only happens when the content is controlled by both
v-if
andv-show
. But in Vue 1.x, it works fine as shown in this demoThe text was updated successfully, but these errors were encountered: