Skip to content

Commit c64679f

Browse files
author
zhangqin3
committed
[fixed] Active Next and Last button in Pagination when ellipsis=true and items=0
1 parent 9dae734 commit c64679f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Pagination.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const Pagination = React.createClass({
112112
<PaginationButton
113113
key='next'
114114
eventKey={this.props.activePage + 1}
115-
disabled={this.props.activePage === this.props.items}
115+
disabled={this.props.activePage >= this.props.items}
116116
onSelect={this.props.onSelect}>
117117
<span aria-label='Next'>&rsaquo;</span>
118118
</PaginationButton>
@@ -144,7 +144,7 @@ const Pagination = React.createClass({
144144
<PaginationButton
145145
key='last'
146146
eventKey={this.props.items}
147-
disabled={this.props.activePage === this.props.items}
147+
disabled={this.props.activePage >= this.props.items}
148148
onSelect={this.props.onSelect}>
149149
<span aria-label='Last'>&raquo;</span>
150150
</PaginationButton>

0 commit comments

Comments
 (0)