Skip to content

layout calculations in beforeEnter hook will cancel entering animation for transition elements #7531

Closed
@kingofwhales

Description

@kingofwhales

Version

2.5.13

Reproduction link

https://codepen.io/asiankingofwhales/pen/zpQBQM

Steps to reproduce

  1. Click Toggle Slide to enable transition, which is currently not working
  2. If you remove the scrollTop layout calculations in beforeSlideEnter, the element will slide in smoothly. Now the transition is working.

What is expected?

Gradual sliding in from right

What is actually happening?

With scrollTop calculations, the entering transition is gone.


I have found that wrapping the child component in an additional div will solve this problem. However, this seems like a hack.

I apologize if this is not a bug. I have raised this questions in forum, discord and stackoverflow but no one is able to answer. So I have started to think that it might be a bug.

Stackoverflow Link

https://stackoverflow.com/questions/48420077/beforeenter-hook-on-child-component-transition-cancelled-by-scrolltop-layout-cal

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions