Skip to content

Commit

Permalink
* #15. fix last page bug when more + disable user-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkushman committed Mar 18, 2017
1 parent b033be1 commit 3e50912
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Pagination extends React.Component {
gt_page: true,
selected: (currentPage === page) ? true : false
});

if (p > CommonConstants.MORE_PAGES) {
if (selectedPage < CommonConstants.MORE_PAGES) { // head
pagesContent[p] = <span key={p}><div className="gt_page_dots">...</div><div key={p+1} onClick={this.props.updatePagination}
Expand Down

0 comments on commit 3e50912

Please sign in to comment.