rc-animate
Advanced tools
Comparing version 2.10.0 to 2.10.1
@@ -269,3 +269,4 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty'; | ||
value: function getDerivedStateFromProps(props, _ref) { | ||
var prevProps = _ref.prevProps; | ||
var prevProps = _ref.prevProps, | ||
prevStatus = _ref.status; | ||
@@ -284,2 +285,9 @@ if (!isSupportTransition(props)) return {}; | ||
// Clean up status if prop set to false | ||
if (prevStatus === STATUS_APPEAR && !motionAppear || prevStatus === STATUS_ENTER && !motionEnter || prevStatus === STATUS_LEAVE && !motionLeave) { | ||
newState.status = STATUS_NONE; | ||
newState.statusActive = false; | ||
newState.newStatus = false; | ||
} | ||
// Appear | ||
@@ -286,0 +294,0 @@ if (!prevProps && visible && motionAppear) { |
@@ -314,3 +314,4 @@ 'use strict'; | ||
value: function getDerivedStateFromProps(props, _ref) { | ||
var prevProps = _ref.prevProps; | ||
var prevProps = _ref.prevProps, | ||
prevStatus = _ref.status; | ||
@@ -329,2 +330,9 @@ if (!isSupportTransition(props)) return {}; | ||
// Clean up status if prop set to false | ||
if (prevStatus === STATUS_APPEAR && !motionAppear || prevStatus === STATUS_ENTER && !motionEnter || prevStatus === STATUS_LEAVE && !motionLeave) { | ||
newState.status = STATUS_NONE; | ||
newState.statusActive = false; | ||
newState.newStatus = false; | ||
} | ||
// Appear | ||
@@ -331,0 +339,0 @@ if (!prevProps && visible && motionAppear) { |
{ | ||
"name": "rc-animate", | ||
"version": "2.10.0", | ||
"version": "2.10.1", | ||
"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
94142
2311