AllenFang / AllenFang/react-bootstrap-table
Reseting currPage if handleFilterData() was called
Abierto
- Lenguaje dominante
- JavaScript
- Estrellas
- 2.2k
- Forks
- 761
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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);
```
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.