rc-animate
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -17,2 +17,7 @@ 'use strict'; | ||
var transitionMap = { | ||
enter: 'transitionEnter', | ||
leave: 'transitionLeave' | ||
}; | ||
var AnimateChild = _react2['default'].createClass({ | ||
@@ -32,3 +37,3 @@ displayName: 'AnimateChild', | ||
}; | ||
if ((_cssAnimation.isCssAnimationSupported || !props.animation[animationType]) && transitionName && props.transitionEnter) { | ||
if ((_cssAnimation.isCssAnimationSupported || !props.animation[animationType]) && transitionName && props[transitionMap[animationType]]) { | ||
this.stopper = (0, _cssAnimation2['default'])(node, transitionName + '-' + animationType, end); | ||
@@ -35,0 +40,0 @@ } else { |
{ | ||
"name": "rc-animate", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"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
18296
381