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 還沒有評估資料。