Merge pull request #1858 from ant-design/fix-filter-without-pagination

[Table] fix: throws error when filtering data with `pagination` set to `false…
This commit is contained in:
RaoHai 2016-05-26 18:00:27 +08:00
commit 4938c25782

View File

@ -262,9 +262,11 @@ export default class Table extends React.Component {
}
});
if (props.pagination) {
// Reset current prop
pagination.current = 1;
pagination.onChange(pagination.current);
}
const newState = {
selectionDirty: false,