rc-animate
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -160,3 +160,3 @@ 'use strict'; | ||
this.props.onEnd(key, true); | ||
if (this.isMounted()) { | ||
if (this.isMounted() && !(0, _ChildrenUtils.isSameChildren)(this.state.children, currentChildren)) { | ||
this.setState({ | ||
@@ -191,3 +191,3 @@ children: currentChildren | ||
this.props.onEnd(key, false); | ||
if (this.isMounted()) { | ||
if (this.isMounted() && !(0, _ChildrenUtils.isSameChildren)(this.state.children, currentChildren)) { | ||
this.setState({ | ||
@@ -194,0 +194,0 @@ children: currentChildren |
@@ -72,2 +72,14 @@ 'use strict'; | ||
isSameChildren: function isSameChildren(c1, c2) { | ||
var same = c1.length === c2.length; | ||
if (same) { | ||
c1.forEach(function (c, i) { | ||
if (c !== c2[i]) { | ||
same = false; | ||
} | ||
}); | ||
} | ||
return same; | ||
}, | ||
mergeChildren: function mergeChildren(prev, next) { | ||
@@ -74,0 +86,0 @@ var ret = []; |
{ | ||
"name": "rc-animate", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "css-transition ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18204
377