-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Nested transition behavior inconsistent at mount/unmount #10030
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
Comments
Duplicate of #9328 The flow n1 is working correctly because you used |
@posva sorry for the duplicate. As said i understand why it works as is, still it's not the intented behavior from a consumer side. From the original ticket, sad to see it's still not an implemented feature. |
no worries, I added your repro link to the other issue because it's very clean! to be clear, the |
@posva thanks for the feedback. I was trying to hack into Updated try : https://jsfiddle.net/cztsvao8/ My idea was to use a Thanks for your time! |
no, that's something normal. You need to update the component before triggering the leave transition. I think there is an open issue about being able to change some of the stuff in beforeLeave |
As for the people interested, I found success in this particular demo by adding a little more css. Here's an updated working demo : https://jsfiddle.net/y_nk/0ychqaen/ Please notice that will only fix the display, not the hooks. |
Version
2.6.10
Reproduction link
https://jsfiddle.net/ae82rfnv/
Steps to reproduce
While operating, carefully notice of the transitions
Working flow
Broken flow n°1
Broken flow n°2
What is expected?
While unmounting, a transition should search for nested transition and operates in sequence carefully, running children transition first, then playing its own transition before unmounting, so all children transition could run their "leave" transition carefully.
What is actually happening?
Only the parent transiton runs, ignoring the children transition.
I understand why it does what it does as is, and it makes sense from mounting point of view ; where the logic fails is in the "final effect" : while the 2 transitions (parent and child) play correctly when mounting, it doesn't run "the opposite way/backwards" when unmounting.
The text was updated successfully, but these errors were encountered: