AllenFang / AllenFang/react-bootstrap-table

Delete not working on second page second row when paginated

Aberta
#1,560 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
2.2k
Forks
761
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Throws Error:

`result = this.store.page(Util.getNormalizedPage(pageStartIndex, currPage), sizePerPage).get();` in `deleteRow` function in BootstrapTable.js has issue.

When `Util.getNormalizedPage(pageStartIndex, currPage)` is called it returns value 3 when there are only 2 pages actually. I Think the call to `this.store.page()` should be like `this.store.page(currPage,sizePerPage).get()`

No need for Normalization here. Correct me if i am wrong or let me know why it is required for that normalization.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.