Skip to content

Commit

Permalink
Merge pull request ant-design#1858 from ant-design/fix-filter-without…
Browse files Browse the repository at this point in the history
…-pagination

[Table] fix: throws error when filtering data with `pagination` set to `false…
  • Loading branch information
RaoHai committed May 26, 2016
2 parents b3ab13e + dbdd5c5 commit 4938c25
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/table/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4938c25

Please sign in to comment.