AllenFang / AllenFang/react-bootstrap-table

Delete not working on second page second row when paginated

未關閉
#1,560 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
2.2k
分支
761
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。