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

The onchange doesnt work?

Open rohitkrishna094 opened this issue 6 years ago • 2 comments

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?

rohitkrishna094 avatar Nov 17 '19 13:11 rohitkrishna094

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.

hassaan-prog avatar Dec 17 '19 07:12 hassaan-prog

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.

rohitkrishna094 avatar Dec 17 '19 14:12 rohitkrishna094