New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rsuite-table

Package Overview
Dependencies
Maintainers
1
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsuite-table - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1-hotfix

10

lib/Table.js

@@ -23,2 +23,6 @@ 'use strict';

var _eq2 = require('lodash/eq');
var _eq3 = _interopRequireDefault(_eq2);
var _debounce2 = require('lodash/debounce');

@@ -176,3 +180,3 @@

value: function shouldComponentUpdate(nextProps, nextState) {
return !(0, _isEqual3.default)(this.props, nextProps) || !(0, _isEqual3.default)(this.state, nextState);
return !(0, _eq3.default)(this.props, nextProps) || !(0, _isEqual3.default)(this.state, nextState);
}

@@ -408,6 +412,2 @@ }, {

this.minScrollY = -(contentHeight - height) - 10;
if (this.state.contentHeight !== nextContentHeight) {
// this.scrollY = 0;
// this.scrollbarY && this.scrollbarY.resetScrollBarPosition(30);
}
}

@@ -414,0 +414,0 @@ }, {

{
"name": "rsuite-table",
"version": "3.0.0",
"version": "3.0.1-hotfix",
"description": "A React table component",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -145,3 +145,5 @@ // @flow

const { children = [], isTree, rowKey } = this.props;
const shouldFixedColumn = Array.from(children).some(child => _.get(child, 'props.fixed'));
const shouldFixedColumn = Array.from(children).some((child: any) =>
_.get(child, 'props.fixed')
);

@@ -173,3 +175,3 @@ if (isTree && !rowKey) {

shouldComponentUpdate(nextProps: Props, nextState: State) {
return !_.isEqual(this.props, nextProps) || !_.isEqual(this.state, nextState);
return !_.eq(this.props, nextProps) || !_.isEqual(this.state, nextState);
}

@@ -547,6 +549,2 @@

this.minScrollY = -(contentHeight - height) - 10;
if (this.state.contentHeight !== nextContentHeight) {
// this.scrollY = 0;
// this.scrollbarY && this.scrollbarY.resetScrollBarPosition(30);
}
}

@@ -553,0 +551,0 @@

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