Unable to change pages in a DataTable component with a paginator when onPage is defined #7238
Labels
Resolution: By Design
The behavior in the issue is by design and the component exhibits the expected behavior
Describe the bug
When using DataTable with a paginator, switching to any page becomes impossible as soon as the onPage event handler is defined.
It looks like setFirstState and setRowsState in the onPageChange function only get called if props.onPage is falsy.
Reproducer
https://stackblitz.com/edit/mzbkfv?file=src%2FApp.jsx
System Information
Steps to reproduce the behavior
Expected behavior
Being able to change to another page in the paginator as well as being able to react to the page change.
The text was updated successfully, but these errors were encountered: