AllenFang / AllenFang/react-bootstrap-table

Delete not working on second page second row when paginated

Aperta
#1,560 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
2.2k
Fork
761
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.