Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rsuite-affix

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsuite-affix - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

lib/Affix.js

@@ -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() {

3

package.json
{
"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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc