Skip to content

Commit

Permalink
Merge pull request #4170 from johanneslumpe/patch-1
Browse files Browse the repository at this point in the history
Guard against a null node
  • Loading branch information
sophiebits committed Jun 20, 2015
2 parents ede27d2 + b16f9d4 commit 64b5f04
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/addons/transitions/ReactCSSTransitionGroupChild.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 64b5f04

Please sign in to comment.