rc-animate
Advanced tools
Comparing version 2.11.0 to 2.11.1
@@ -144,3 +144,11 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty'; | ||
_this.getElement = function () { | ||
return findDOMNode(_this.node || _this); | ||
try { | ||
return findDOMNode(_this.node || _this); | ||
} catch (e) { | ||
/** | ||
* Fallback to cache element. | ||
* This is only happen when `motionDeadline` trigger but element removed. | ||
*/ | ||
return _this.$cacheEle; | ||
} | ||
}; | ||
@@ -147,0 +155,0 @@ |
@@ -189,3 +189,11 @@ 'use strict'; | ||
_this.getElement = function () { | ||
return (0, _findDOMNode2['default'])(_this.node || _this); | ||
try { | ||
return (0, _findDOMNode2['default'])(_this.node || _this); | ||
} catch (e) { | ||
/** | ||
* Fallback to cache element. | ||
* This is only happen when `motionDeadline` trigger but element removed. | ||
*/ | ||
return _this.$cacheEle; | ||
} | ||
}; | ||
@@ -192,0 +200,0 @@ |
{ | ||
"name": "rc-animate", | ||
"version": "2.11.0", | ||
"version": "2.11.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
95607
2348