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

Internal state problem after data update #4

Closed imballinst closed 7 years ago

imballinst commented 7 years ago

How to reproduce:

  1. Load data with more than one page
  2. Go to the last page
  3. Reduce the number of data shown in the table by providing less data
  4. The paging number will "gone", but clicking "first" will fix it

Hypothesis: probably something to do with the internal state when updating the data, it should have reset the table state, including the sorting and filter features.