Closed
Description
Hi team, I have a question about the behavior when the number of rows per page changes. I noticed when I move to another page and then change the number of rows per page, first the onPageChange
callback triggers, returning the value of the first page. You can test this behavior in the following sandbox: https://codesandbox.io/s/material-table-starter-template-forked-wfhwi0?file=/src/index.js
Currently, I'm using v5.1.6, but I've already tried with some of the previous versions and it seems this behavior has been there for a while now. Is there any reason/purpose for calling the onPageChange
and returning the value of the first page (0) when the onChangeRowsPerPage
is called?