imballinst / react-bs-datatable

Bootstrap datatable without jQuery. Features include: filter, sort, pagination, checkbox, and control customization.
https://imballinst.github.io/react-bs-datatable
MIT License
59 stars 20 forks source link

Bug Fix: Recalculate pagination after filter #108

Closed ahmetunal closed 2 years ago

ahmetunal commented 2 years ago

Current behavior: Number of pages stays same after a filter is applied Expected behavior: Pagination should change after a filter is applied according to new set of results

imballinst commented 2 years ago

This has been released in 2.2.3. The sandbox can be seen here: https://codesandbox.io/s/react-bs-datatable-v2-ghv0s.

The Storybook in GitHub pages has also been updated: https://imballinst.github.io/react-bs-datatable/?path=/story/getting-started--filter-sort-and-pagination.

Thanks again for the fix @ahmetunal!