Skip to content

Children update is ignored when animation is in progress #38

@mondaychen

Description

@mondaychen

You can easily reproduce this bug in the "Cross-fade transition" example in demo.

If you quickly click twice (like doubleclick) on the image, the page will show the 2nd image. But at this moment, the parent component has already changed its state twice (swapped: false->true->false) and expecting <ReactCSSTransitionReplace> to show the 1st image. Apparently <ReactCSSTransitionReplace> ignored the 2nd change because the animation was not completed.

Now if you click on the image again (swapped is changed to true), nothing will happen on the page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions