react-transition-group
react-transition-group copied to clipboard
CSSTransition appearDone being unset causes "undefined" class when in+appear are true first and enterDone is set
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;
}