AllenFang / AllenFang/react-bootstrap-table
Reseting currPage if handleFilterData() was called
未关闭
- 主要语言
- JavaScript
- 星标
- 2.2k
- 派生
- 761
- PR 合并指标
- 30 天内没有已合并 PR
描述
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);
```
贡献指南
评估
这个 Issue 还没有评估数据。