-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
onEnter
of transition component is fired when its child is set to v-show="false"
#4845
Comments
Please refer to: https://v3.vuejs.org/guide/conditional.html#v-if-vs-v-show |
This behavior seems inconsistent with |
Maybe it is not a bug? |
I can't understand what it behaves by reading the docs. I just want it have the same behavior on hooks like |
It is Intentional? |
I don't think so. Enter is transition's enter, not the child element's enter. |
@07akioni , I think you should delete the
The element has rendered because v-show will just add an
|
I want the animation play on its first mount. |
your description is really incomplete . if you want that animation play on its first mount , so what is the bug? |
When default The main problem is when the default This is inconsistent between |
…sed with v-show fix vuejs#4845 close vuejs#4852
Version
3.2.20
Reproduction link
SFC Playground
Steps to reproduce
See the link
What is expected?
onEnter
is not fired sincev-show=false
What is actually happening?
onEnter
is firedThe text was updated successfully, but these errors were encountered: