File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ export default class ReactCSSTransitionReplace extends React.Component {
75
75
} ;
76
76
77
77
state = {
78
- currentChild : this . props . children ? React . Children . only ( this . props . children ) : null ,
78
+ currentChild : this . props . children ? React . Children . only ( this . props . children ) : undefined ,
79
79
currentChildKey : this . props . children ? '1' : '' ,
80
- nextChild : null ,
80
+ nextChild : undefined ,
81
81
nextChildKey : '' ,
82
82
height : null ,
83
83
isLeaving : false
@@ -179,7 +179,7 @@ export default class ReactCSSTransitionReplace extends React.Component {
179
179
this . setState ( {
180
180
currentChild : state . nextChild ,
181
181
currentChildKey : state . nextChildKey ,
182
- nextChild : null ,
182
+ nextChild : undefined ,
183
183
nextChildKey : '' ,
184
184
height : null
185
185
} ) ;
@@ -195,7 +195,7 @@ export default class ReactCSSTransitionReplace extends React.Component {
195
195
// element must be removed from the DOM if the enter transition is still in progress.
196
196
_handleDoneLeaving = ( ) => {
197
197
if ( this . isTransitioning ) {
198
- const state = { currentChild : null , isLeaving : false } ;
198
+ const state = { currentChild : undefined , isLeaving : false } ;
199
199
200
200
if ( ! this . state . nextChild ) {
201
201
this . isTransitioning = false ;
@@ -210,7 +210,7 @@ export default class ReactCSSTransitionReplace extends React.Component {
210
210
this . isTransitioning = false ;
211
211
clearTimeout ( this . timeout ) ;
212
212
return this . setState ( {
213
- nextChild : null ,
213
+ nextChild : undefined ,
214
214
nextChildKey : '' ,
215
215
height : null
216
216
} ) ;
You can’t perform that action at this time.
0 commit comments