Skip to content

onRowsPerPageChange callback triggers onPageChange #706

Closed
@dcaudillo99

Description

@dcaudillo99

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions