-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Transitions doesn't work with leave hooks #2720
Comments
Can you check if #2716 fixed the issue? |
Thanks for quick response @posva. Not sure if there's another way but, I cloned and built Vue, and copied the new |
This is broken due to e2618a6 and #2716 does not fix it. So I just landed cbaa380 which makes the code work but requires using I know this is technically still a breaking change, but it's somewhat necessary to adhere to the intended behavior. |
Ok I've figured out how to test the development build properly after reading here. Just tested and works perfectly now. Thanks for the quick fix! |
Version
3.0.4
Reproduction link
https://codesandbox.io/s/6jxsj?file=/src/App.vue
Steps to reproduce
Click on "Have Children" menu, it expands nicely with css transition but collapse will not transition in v3.0.4 while it works in v3.0.3.
What is expected?
Expand and collapse with transition effect.
What is actually happening?
Collapse transition is not working
I believe this is happening because v.3.0.4 is disabling the transition before
nextFrame
in this merged PR #2597. I can see in dev tools that when the height is changed to "0px",transition-property: none
is applied to the element that removes transitions all together. As I commented in the reproduction code, adding a little delay withsetTimeout
seems to work around the problem.The text was updated successfully, but these errors were encountered: