AllenFang / AllenFang/react-bootstrap-table
Remote mode : Page is set to 1 when I reset a filter
- 主要语言
- JavaScript
- 星标
- 2.2k
- 派生
- 761
- PR 合并指标
- 30 天内没有已合并 PR
描述
I have a table that I use in remote mode.
If I set the properties like this :
```
data =
sizePerPage = 5
options.page = 2
fetchInfo.dataTotalSize=7
```
then it works fine. I see my two elements, and the page number 2 is highlighted.
But when I set a text filter to blank, or a custom filter to blank (I call `filterHandler()` with no parameters inside my custom filter), then the page 1 becomes highlighted in pagination list, and I can't click on it or page 2. The props haven't changed, so I see a mismatch between `props.options.page=2` and `state.currPage=1`.
Do you have a workaround or a fix? I think this is the last bug left in my list and I'm a little bit frustrated ^^
Thanks in advance, and great work with this component, it's very useful.
贡献指南
评估
这个 Issue 还没有评估数据。