Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter does not reset to first page if initial page index set to anything other than 0 #1302

Open
1 task done
shakif95 opened this issue Nov 15, 2024 · 0 comments
Open
1 task done

Comments

@shakif95
Copy link

material-react-table version

3.0.1

react & react-dom versions

18.2.0

Describe the bug and the steps to reproduce it

  1. Set the initial state value
initialState={{
        showGlobalFilter: true,
        pagination: {
          pageIndex: 1,
          pageSize: 5,
        },
      }}
  1. Filter for a value that has the number of results less than the initial pageSize which is 5 in this case.
  2. The table stays on page 1. Expected behaviour - it should have been set to the first page.

Minimal, Reproducible Example - (Optional, but Recommended)

https://stackblitz.com/edit/github-o37zg3?file=src%2FTS.tsx

Screenshots or Videos (Optional)

Peek 2024-11-15 15-14

Do you intend to try to help solve this bug with your own PR?

No, because I do not have time to dig into it

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant