-
-
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
Allow nested transition to trigger upon removal #9328
Comments
This is working as expected because when both conditions are set to false on the same tick, only the parent is removed by the |
Wow, that's disappointing. 😢 |
it could be via a new prop on transition I think 🤔 . I haven't checked the feasibility though although it should be possible |
Nice! 😊👍 |
For future reader, @posva is right, we can achieve that via props. I made a quick example here for the matter. |
Version
2.5.22
Reproduction link
https://jsfiddle.net/wx91uLft/
other: https://jsfiddle.net/ae82rfnv/
Steps to reproduce
What is expected?
All transitions should be triggered on leave, even for nested child elements.
What is actually happening?
Transition classes don't get applied to nested child elements, when conditions for leaving transitions occur on the same tick.
Workaround: Delaying the parent transitions by one tick fixes the problem.
This has been reported, but got closed due to the sample code did not use
appear
on the<transition>
elements. (See issues #7643 and #9243)My example is more detailed and also provides a workaround.
The text was updated successfully, but these errors were encountered: