From b16f9d42b1d5d8d2e1b660f387af4b7f15294e3a Mon Sep 17 00:00:00 2001 From: Johannes Lumpe Date: Thu, 18 Jun 2015 18:26:07 +0300 Subject: [PATCH] Guard against a null node This could fix #2619 --- src/addons/transitions/ReactCSSTransitionGroupChild.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/addons/transitions/ReactCSSTransitionGroupChild.js b/src/addons/transitions/ReactCSSTransitionGroupChild.js index 519e07ad055fc..5f65fe3d55428 100644 --- a/src/addons/transitions/ReactCSSTransitionGroupChild.js +++ b/src/addons/transitions/ReactCSSTransitionGroupChild.js @@ -48,6 +48,14 @@ var ReactCSSTransitionGroupChild = React.createClass({ transition: function(animationType, finishCallback) { var node = React.findDOMNode(this); + + if (!node) { + if (finishCallback) { + finishCallback(); + } + return; + } + var className = this.props.name + '-' + animationType; var activeClassName = className + '-active'; var noEventTimeout = null;