Skip to content

Commit

Permalink
fix(behavior): doesn't activate the forward buttons on initial load
Browse files Browse the repository at this point in the history
  • Loading branch information
titanve committed Mar 3, 2019
1 parent f9b8104 commit c652042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react-next-paging.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ReactNextPaging extends React.Component {
) {
const { currentpage } = prevState;
const newState = this.generateStateFromProps(this.props, currentpage);
this.setState({ ...newState });
this.setState({ newState });
}
}

Expand Down

0 comments on commit c652042

Please sign in to comment.