mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #4170 from johanneslumpe/patch-1
Guard against a null node
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user