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
if ('dataSource' in nextProps &&
nextProps.dataSource !== this.props.dataSource) {
newState = {
newState = objectAssign(newState, {
selectedRowKeys: [],
dataSource: nextProps.dataSource,
loading: true
};
});
}
if (nextProps.columns !== this.props.columns) {
newState.filters = {};