rsuite-table
Advanced tools
Comparing version 3.0.0 to 3.0.1-hotfix
@@ -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 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
160089
3612
2