DataTable: Pagination stops working when a column filter is applied #1388
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ...
CodeSandbox Case (Bug Reports)
Demo:
https://codesandbox.io/s/frosty-dubinsky-j8zvo
https://j8zvo.csb.app/
The provided demo shows a table with 32 rows.
Showing page other than the first one is not possible when a filter is applied.
Current behavior
In versions higher than 2.4.0 pagination (changing pages) of DataTable doesn't work when a filter is applied.
Initially pagination is working (because there's no filter applied). However if we apply a filter which results in more than one page of filtered results - pagination stops working (first page is shown and other pages can not be selected).
Note: This bug has been previously reported with issue #1305 but the proposed fix didn't resolve it.
Expected behavior
Users should be able to see paginated results when clicking on corresponding page buttons with or without filter applied.
Minimal reproduction of the problem with instructions
Steps to reproduce (using the provided codesandbox demo):
Last version in which pagination with applied filter works is 2.4.0.
Demo:
https://codesandbox.io/s/frosty-dubinsky-j8zvo
What is the motivation / use case for changing the behavior?
The described bug seriously and negatively impacts UX.
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: