rc-animate
Advanced tools
Comparing version 2.5.1 to 2.5.2
@@ -191,3 +191,4 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty'; | ||
motionName = _props.motionName, | ||
visible = _props.visible; | ||
visible = _props.visible, | ||
removeOnLeave = _props.removeOnLeave; | ||
@@ -198,3 +199,3 @@ | ||
if (status === STATUS_NONE || !transitionSupport) { | ||
return visible ? children({}) : null; | ||
return visible || !removeOnLeave ? children({}) : null; | ||
} | ||
@@ -260,2 +261,3 @@ | ||
motionLeaveImmediately: PropTypes.bool, // Trigger leave motion immediately | ||
removeOnLeave: PropTypes.bool, | ||
onAppearStart: PropTypes.func, | ||
@@ -275,3 +277,4 @@ onAppearActive: PropTypes.func, | ||
motionAppear: true, | ||
motionLeave: true | ||
motionLeave: true, | ||
removeOnLeave: true | ||
}; | ||
@@ -278,0 +281,0 @@ |
@@ -235,3 +235,4 @@ 'use strict'; | ||
motionName = _props.motionName, | ||
visible = _props.visible; | ||
visible = _props.visible, | ||
removeOnLeave = _props.removeOnLeave; | ||
@@ -242,3 +243,3 @@ | ||
if (status === STATUS_NONE || !transitionSupport) { | ||
return visible ? children({}) : null; | ||
return visible || !removeOnLeave ? children({}) : null; | ||
} | ||
@@ -303,2 +304,3 @@ | ||
motionLeaveImmediately: _propTypes2['default'].bool, // Trigger leave motion immediately | ||
removeOnLeave: _propTypes2['default'].bool, | ||
onAppearStart: _propTypes2['default'].func, | ||
@@ -318,3 +320,4 @@ onAppearActive: _propTypes2['default'].func, | ||
motionAppear: true, | ||
motionLeave: true | ||
motionLeave: true, | ||
removeOnLeave: true | ||
}; | ||
@@ -321,0 +324,0 @@ |
{ | ||
"name": "rc-animate", | ||
"version": "2.5.1", | ||
"version": "2.5.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
71471
1753