Skip to content

Commit

Permalink
fix setState will cause changing to page one if selected row is on la…
Browse files Browse the repository at this point in the history
…st page
  • Loading branch information
AllenFang committed Jun 17, 2016
1 parent 4df772a commit 7093d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class BootstrapTable extends Component {
} else {
// #125
if (!options.page &&
page >= Math.ceil(nextProps.data.length / sizePerPage)) {
page > Math.ceil(nextProps.data.length / sizePerPage)) {
page = 1;
}
const sortInfo = this.store.getSortInfo();
Expand Down

0 comments on commit 7093d58

Please sign in to comment.