Skip to content

TransitionGroup leave animation doesn't get non-active style #847

Closed
@matthewwithanm

Description

@matthewwithanm

I think I've come across a bug with TransitionGroup which basically causes properties of the "leave" styles to be ignored. Here's a fiddle demonstrating the problem.

As you can see, the "leave" animation doesn't use the correct origin or transition (in the latest Chrome or FF). If those properties are moved to an always-matching selector (".bluebox"), it works fine.

My only guess as to why this would happen is that the active leave class is being added in the same tick as the leave.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions