-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
transition-group item with flex parent moves to top-left #9713
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
it goes to the top because you are using position absolute |
That fact was explained in the description of the ticket. If there is no intention of supporting this use case, it would be more interesting to know why.
… On 15. Mar 2019, at 17:54, Eduardo San Martin Morote ***@***.***> wrote:
Closed #9713.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I'm saying that this is working correctly: absolute makes it go to the top left in the flex container even without top or left (not the case with a regular container) and because it's in a transition group, Vue adds the transform attribute (to move things) making it move to the top left |
Same issue for flex and grid Found this solutions:
thanks to docmars in forum.vuejs.org |
The reason In the example, this works fine. But when using a flex parent container, the items move to the top of the container the moment they are animated away, which is an undesired side effect. |
Version
2.6.8
Reproduction link
https://codepen.io/andymerskin/pen/eRNvLR
Steps to reproduce
What is expected?
The rectangle should fade out, but not move
What is actually happening?
The rectagle moves to the left-top corner while fading away
This seems to be caused by the flex parent combined with absolute positioning of the rectangle leaving
Related
move
.The text was updated successfully, but these errors were encountered: