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 {
} }
}); });
// Reset current prop if (props.pagination) {
pagination.current = 1; // Reset current prop
pagination.onChange(pagination.current); pagination.current = 1;
pagination.onChange(pagination.current);
}
const newState = { const newState = {
selectionDirty: false, selectionDirty: false,