AllenFang / AllenFang/react-bootstrap-table

11th item is not shown when selecting 15 from the pagination

Aberta
#1,462 2 comentários 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

I have 11 items but the table only shows 10 items. If i provide `sizePerPage: 10` it shows the 10 users if 5 then 5 users but if i give 11 as a sizePerPage i see only 10 items. Also when selecting the 15 from dropdown of pagination, i get only 10 items.

Here is the configuration

```javascript
const options = {
afterDeleteRow: this.onAfterDeleteRow,
sizePerPage: 5,
sizePerPageList: [5, 10, 15, 20]
};
const { users, response } = this.props;
if (users.size === 0) {
return

loading
;
}
const selectRowProp = {
mode: "checkbox",
clickToSelect: true,
className: "custom-select-class",
bgColor: "#2863a0",
color: "#fff"
};
return (

Users



)
```

Why 11th item is not shown? Is it bug or i have done some mistake in configuration?

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.