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

Selected rows persist on page change #2013

Open
Avi-88 opened this issue Jul 18, 2023 · 0 comments
Open

Selected rows persist on page change #2013

Avi-88 opened this issue Jul 18, 2023 · 0 comments

Comments

@Avi-88
Copy link

Avi-88 commented Jul 18, 2023

Expected Behavior

The table state that manages the selected rows should reset on page change and clear all selections when navigating through pages

Current Behavior

The rows selected on a particular page persist on to the other page when page is changed

Steps to Reproduce (for bugs)

Run this example and change the rowsPerPage to 10.

  1. Select the first row
  2. Navigate to the next page
  3. The first row in the second page is selected
  4. Select a different row in page 2
  5. Navigate back to the first page
  6. The rows selected on page 2 persist on page 1

Your Environment

Tech Version
Material-UI v5
MUI-datatables ^4.2.2
React 17.0.2
browser Brave
OS Windows
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