react-js-pagination icon indicating copy to clipboard operation
react-js-pagination copied to clipboard

How to disable "last Page" Page component when there is only 1 page?

Open spawn-guy opened this issue 6 years ago • 0 comments

"paginator" forcefully sets .current_page property to 1 if the value is less then 1, but leaves the .total_pages at 0. https://github.com/deoxxa/paginator/blob/master/index.js#L31

soo, this is never true when there is less then 1 page of results: https://github.com/vayser/react-js-pagination/blob/master/src/components/Pagination.js#L185

spawn-guy avatar Jun 22 '18 13:06 spawn-guy