Skip to content

CSSTransition appearDone being unset causes "undefined" class when in+appear are true first and enterDone is set #890

Open

Description

@stevensacks

What is the current behavior?

If in and appear are true on first render, and classNames contains a value for enterDone and you do not provide appearDone, you get an undefined class.

Having appear set in classNames does not prevent undefined from being included. If you have enterDone and do not include appearDone, you get undefined.

What is the expected behavior?

Do not inject "undefined" class names (in any situation, not just this one).

Could you provide a CodeSandbox demo reproducing the bug?

https://codesandbox.io/s/blazing-tdd-dlmmk3?file=/src/App.js

I made a css class which turns text red so you can see visually when undefined is being included.

.undefined {
    color: #f00;
}

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions