Fix pagination in table

This commit is contained in:
afc163 2015-09-14 13:38:19 +08:00
parent c6aaeb9932
commit 13ebd2d76d

View File

@ -77,11 +77,11 @@ let AntTable = React.createClass({
// dataSource // dataSource
if ('dataSource' in nextProps && if ('dataSource' in nextProps &&
nextProps.dataSource !== this.props.dataSource) { nextProps.dataSource !== this.props.dataSource) {
newState = { newState = objectAssign(newState, {
selectedRowKeys: [], selectedRowKeys: [],
dataSource: nextProps.dataSource, dataSource: nextProps.dataSource,
loading: true loading: true
}; });
} }
if (nextProps.columns !== this.props.columns) { if (nextProps.columns !== this.props.columns) {
newState.filters = {}; newState.filters = {};