rsuite-affix
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -21,2 +21,6 @@ 'use strict'; | ||
var _elementResizeEvent = require('element-resize-event'); | ||
var _elementResizeEvent2 = _interopRequireDefault(_elementResizeEvent); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -85,5 +89,8 @@ | ||
componentDidMount: function componentDidMount() { | ||
var container = (0, _reactDom.findDOMNode)(this.container); | ||
this._scrollListener = (0, _domLib.on)(window, 'scroll', this.updatePosition); | ||
this._resizeListener = (0, _domLib.on)(window, 'resize', this.handleWindowResize); | ||
this.setContainerOffset(); | ||
(0, _elementResizeEvent2.default)(container, this.setContainerOffset); | ||
}, | ||
@@ -90,0 +97,0 @@ componentWillUnmount: function componentWillUnmount() { |
{ | ||
"name": "rsuite-affix", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Make an element sticky to viewport Edit", | ||
@@ -22,2 +22,3 @@ "scripts": { | ||
"dom-lib": "0.0.14", | ||
"element-resize-event": "^2.0.7", | ||
"react": "^0.14.2", | ||
@@ -24,0 +25,0 @@ "react-dom": "^0.14.2" |
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
16224
247
5
+ Addedelement-resize-event@^2.0.7
+ Addedelement-resize-event@2.0.9(transitive)