AllenFang / AllenFang/react-bootstrap-table
Reseting currPage if handleFilterData() was called
Offen
- Vorherrschende Sprache
- JavaScript
- Sterne
- 2.2k
- Forks
- 761
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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);
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.