diff --git a/src/Pagination.js b/src/Pagination.js index df159e70bf..71909aa694 100644 --- a/src/Pagination.js +++ b/src/Pagination.js @@ -51,6 +51,9 @@ const Pagination = React.createClass({ if(!hasHiddenPagesAfter){ endPage = items; startPage = items - maxButtons + 1; + if(startPage < 1){ + startPage = 1; + } } else { endPage = startPage + maxButtons - 1; } @@ -109,7 +112,7 @@ const Pagination = React.createClass({ = this.props.items} onSelect={this.props.onSelect}> @@ -141,7 +144,7 @@ const Pagination = React.createClass({ = this.props.items} onSelect={this.props.onSelect}> »