Skip to content

fix(CSSTransition): avoid undefined class when appearDone is omitted - #938

Open
Aminark wants to merge 2 commits into
reactjs:masterfrom
Aminark:fix/appear-done-class-name
Open

Aminark wants to merge 2 commits into
reactjs:masterfrom
Aminark:fix/appear-done-class-name

Conversation

@Aminark

@Aminark Aminark commented Oct 25, 2026

Copy link
Copy Markdown

Fixes #890.

When classNames provides enterDone but omits appearDone, finishing the initial appearance adds undefined enter-done to the element. Use enterDone on its own when there is no appearance class to join.

Extend the existing regression test to cover both an empty and a defined enterDone. The new case fails before the fix. All 57 Jest tests and Prettier checks pass locally with React 18.2.0.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant