AllenFang / AllenFang/react-bootstrap-table
Reseting currPage if handleFilterData() was called
Ouverte
- Langage dominant
- JavaScript
- Étoiles
- 2.2k
- Forks
- 761
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
We use the table with pagination and row filter. When we display the second page and changing the filter, so that no longer a second page available a blank screen appears. Our solution is to reset the internal state "currPage" to 1 before the filtering occurs.
We would expect that this behaviour happens every time when handleFilterData was called.
```
this.refs.table.state.currPage = 1; // this is our workaround hack!!!
this.refs.table.handleFilterData(filter);
```
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.