AllenFang / AllenFang/react-bootstrap-table

TypeError after clicking tabulator in last editable cell.

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

Descrição

Version 3.4.6.

When I press tabulator at the last editable cell of the table, I get TypeError in handleEditCell function:

```
if (this.props.selectRow.clickToSelectAndEditCell && this.props.cellEdit.mode !== _Const2.default.CELL_EDIT_DBCLICK) {
var selected = this.props.selectedRowKeys.indexOf(this.props.data[rowIndex][this.props.keyField]) !== -1;
this.handleSelectRow(rowIndex + 1, !selected, e);
}
```

where `this.props.data[rowIndex][this.props.keyField]` is undefined. It fails silently if console is not on.

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.