AllenFang / AllenFang/react-bootstrap-table
Remote mode : Page is set to 1 when I reset a filter
- Lenguaje dominante
- JavaScript
- Estrellas
- 2.2k
- Forks
- 761
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.