mantine-react-table icon indicating copy to clipboard operation
mantine-react-table copied to clipboard

Pagination reset after editing row

Open JonasPf opened this issue 1 year ago • 0 comments

mantine-react-table version

v1.3.4

react & react-dom versions

v18.2.0

Describe the bug and the steps to reproduce it

Editing a row resets pagination.

To reproduce:

  1. Open https://www.mantine-react-table.com/docs/examples/editing-crud
  2. Change Rows per page to 5 to enable pagination
  3. Click on the > button so that the table now shows 6-8 of 8
  4. Edit one of the 3 rows displayed and save it
  5. The pagination will be rest to 1-5 of 8

I understand that keeping the pagination when adding/removing rows can be tricky but editing rows should not change it IMHO. Interestingly it seems to work on the in-cell editing examples but I'm not sure why.

Minimal, Reproducible Example - (Optional, but Recommended)

https://www.mantine-react-table.com/docs/examples/editing-crud

Screenshots or Videos (Optional)

No response

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

None

Terms

  • [X] 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.

JonasPf avatar Jul 22 '24 12:07 JonasPf