This commit is contained in:
wanghaoo 2018-10-24 22:47:34 +08:00
parent 4593e2f613
commit 518c834398
2 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ var Table = function (_Component) {
}
if (nextProps.columns && nextProps.columns !== this.props.columns) {
this.columnManager.reset(nextProps.columns);
if (nextProps.columns.length !== this.props.length && this.refs && this.refs.bodyTable) {
if (nextProps.columns.length !== this.props.columns.length && this.refs && this.refs.bodyTable) {
this.refs.fixedColumnsBodyLeft && (this.refs.fixedColumnsBodyLeft.scrollTop = this.refs.bodyTable.scrollTop);
this.refs.fixedColumnsBodyRight && (this.refs.fixedColumnsBodyRight.scrollTop = this.refs.bodyTable.scrollTop);
}

View File

@ -1,6 +1,6 @@
{
"name": "bee-table",
"version": "1.4.25",
"version": "1.4.26",
"description": "Table ui component for react",
"keywords": [
"react",