File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ class TransitionGroup extends React.Component {
101101
102102 _handleDoneAppearing = ( key ) => {
103103 let component = this . childRefs [ key ] ;
104+ if ( ! component ) {
105+ return ;
106+ }
104107 if ( component . componentDidAppear ) {
105108 component . componentDidAppear ( ) ;
106109 }
@@ -131,6 +134,9 @@ class TransitionGroup extends React.Component {
131134
132135 _handleDoneEntering = ( key ) => {
133136 let component = this . childRefs [ key ] ;
137+ if ( ! component ) {
138+ return ;
139+ }
134140 if ( component . componentDidEnter ) {
135141 component . componentDidEnter ( ) ;
136142 }
@@ -161,7 +167,10 @@ class TransitionGroup extends React.Component {
161167
162168 _handleDoneLeaving = ( key ) => {
163169 let component = this . childRefs [ key ] ;
164-
170+
171+ if ( ! component ) {
172+ return ;
173+ }
165174 if ( component . componentDidLeave ) {
166175 component . componentDidLeave ( ) ;
167176 }
You can’t perform that action at this time.
0 commit comments