mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
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:
commit
4938c25782
@ -262,9 +262,11 @@ export default class Table extends React.Component {
|
||||
}
|
||||
});
|
||||
|
||||
// Reset current prop
|
||||
pagination.current = 1;
|
||||
pagination.onChange(pagination.current);
|
||||
if (props.pagination) {
|
||||
// Reset current prop
|
||||
pagination.current = 1;
|
||||
pagination.onChange(pagination.current);
|
||||
}
|
||||
|
||||
const newState = {
|
||||
selectionDirty: false,
|
||||
|
Loading…
Reference in New Issue
Block a user