react-js-pagination
react-js-pagination copied to clipboard
The onchange doesnt work?
When I click the last page or first page or previous page or next page li's, the onChange is passing a pageNumber which is wrong. Is there a handler for first page, last page, previous page and next page?
i am facing the same issue, when i redirect user from create or update to list (in the middle pages of pagination). it does not go from middle pages to first page but allows us to navigate to the last.
Yeah, I think the handler should return something different instead of pageNumber. I ended up writing my own pagination component, but I think this is a small fix in this library if author wants. Or maybe there is a way to handle it in this library which we are not aware of.