Skip to content

CSSTransition: Consistency between initially applied classes and status #612

Open
@silvenon

Description

@silvenon

What would you like improved?

The author of #576 expressed confusion around initially applied classes in CSSTransition, where he expected elements to start with *-done classes when mounted (unless both appear and in are true, of course).

This confusion is understandable to me and seems like many people will want and/or expect this behavior, especially because the value of status already suggests this, as it starts with entered/exited (based on initial in).

This would, of course, be a breaking change, but it's something to consider for v5.

Activity

pxwee5

pxwee5 commented on Jun 17, 2020

@pxwee5

Depends if mountOnEnter or unmountOnExit is set.
If both is unset, then by default the elements should be rendered (mounted) and display: none.

constgen

constgen commented on Apr 28, 2023

@constgen

Not display: none but the same styles as exit-done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @silvenon@constgen@pxwee5

        Issue actions

          CSSTransition: Consistency between initially applied classes and status · Issue #612 · reactjs/react-transition-group