rc-animate
Advanced tools
Comparing version 2.10.3 to 2.11.0
@@ -30,2 +30,3 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty'; | ||
motionLeaveImmediately: PropTypes.bool, // Trigger leave motion immediately | ||
motionDeadline: PropTypes.number, | ||
removeOnLeave: PropTypes.bool, | ||
@@ -187,3 +188,14 @@ leavedClassName: PropTypes.string, | ||
var motionDeadline = _this.props.motionDeadline; | ||
_this.updateStatus(styleFunc, { statusActive: true }); | ||
if (motionDeadline > 0) { | ||
setTimeout(function () { | ||
_this.onMotionEnd({ | ||
deadline: true | ||
}); | ||
}, motionDeadline); | ||
} | ||
}); | ||
@@ -190,0 +202,0 @@ }; |
@@ -75,2 +75,3 @@ 'use strict'; | ||
motionLeaveImmediately: _propTypes2['default'].bool, // Trigger leave motion immediately | ||
motionDeadline: _propTypes2['default'].number, | ||
removeOnLeave: _propTypes2['default'].bool, | ||
@@ -232,3 +233,14 @@ leavedClassName: _propTypes2['default'].string, | ||
var motionDeadline = _this.props.motionDeadline; | ||
_this.updateStatus(styleFunc, { statusActive: true }); | ||
if (motionDeadline > 0) { | ||
setTimeout(function () { | ||
_this.onMotionEnd({ | ||
deadline: true | ||
}); | ||
}, motionDeadline); | ||
} | ||
}); | ||
@@ -235,0 +247,0 @@ }; |
{ | ||
"name": "rc-animate", | ||
"version": "2.10.3", | ||
"version": "2.11.0", | ||
"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
95139
2332