Description
Hello,
I don't know if we should call it an issue , but here is the problem i encountered:
When filtering for a specific value , pagination works fine (It shows the right number of filtered page and the element filtered is shown in the table) .
The problem happens when data changes while filtering is still active(showing 1 page and 1 items that matches our filter) , when we load new data while search is active , a problem occurs (Number of pages becomes incorrect ) [Instead of having one page wich is the correct result since filter is still active , we got X pages that relates data length]
Steps to reproduce:
- Use storyBook example : https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html?selectedKind=Pagination&selectedStory=Custom%20Pagination%20with%20Search&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel
- Search on element (In my case i used 0 ) => Example show 1 Page(everything is good)
- Load Another Data (Click twice on Load Another data)
- Pagination Is showing 2 pages while filter is still Set( i think it only occurs when having the same data shown fetched again and again)
- Worst when we got to second page , blank lines are displayed (See Images Below)
This is really annoying when there are formater on rows , this will display errors because when accessing rows element(Errors will be displayed since key doesn't )