mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +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
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user