Skip to content

Commit

Permalink
[fixed] Active Next and Last button in Pagination when ellipsis=true …
Browse files Browse the repository at this point in the history
…and items=0
  • Loading branch information
zhangqin3 committed Jul 6, 2015
1 parent 9dae734 commit c64679f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const Pagination = React.createClass({
<PaginationButton
key='next'
eventKey={this.props.activePage + 1}
disabled={this.props.activePage === this.props.items}
disabled={this.props.activePage >= this.props.items}
onSelect={this.props.onSelect}>
<span aria-label='Next'>&rsaquo;</span>
</PaginationButton>
Expand Down Expand Up @@ -144,7 +144,7 @@ const Pagination = React.createClass({
<PaginationButton
key='last'
eventKey={this.props.items}
disabled={this.props.activePage === this.props.items}
disabled={this.props.activePage >= this.props.items}
onSelect={this.props.onSelect}>
<span aria-label='Last'>&raquo;</span>
</PaginationButton>
Expand Down

0 comments on commit c64679f

Please sign in to comment.