react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

Next button not working in Pagination

Open techmodule opened this issue 5 years ago • 3 comments

I have use "react-admin": "^3.17.0", But i have problem for Next button in Pagination, it is not working. bug next button I check my API server by change url in browers. http://localhost:3000/#/events?displayedFilters=%7B%7D&filter=%7B%7D&order=ASC&page=1&perPage=10&sort=id Change the page=1 to page=2 http://localhost:3000/#/events?displayedFilters=%7B%7D&filter=%7B%7D&order=ASC&**page=2**&perPage=10&sort=id it is worked well. change url

But Next button same disable. P/S: I try to change by use "ra-data-json-server": "^3.17.0", with the tutorial https://marmelab.com/react-admin/Tutorial.html, it is still not working

techmodule avatar Jul 17 '21 03:07 techmodule

I think this is related to a change in material UI as I had similar issues with table components

chadfaurie avatar Jul 19 '21 10:07 chadfaurie

Might be this issue: https://stackoverflow.com/questions/67077267/react-material-ui-tablepagination-onchangepage-is-not-a-function ? I have the same problems with paginations. An error is thrown, though: Uncaught TypeError: onChangePage is not a function

rjschmitt avatar Jul 19 '21 16:07 rjschmitt

Yes, I believe it's a duplicate of #6421. Material-ui has published a breaking change in a minor version, there is nothing we can do on our side, we have to wait for them to fix it on their side and publish the fix in a new minor release. You can add your vote to https://github.com/mui-org/material-ui/issues/27192#issuecomment-877117148, or contribute a patch there, to get this fixed faster.

fzaninotto avatar Jul 20 '21 15:07 fzaninotto