AllenFang / AllenFang/react-bootstrap-table

Deselecting a row on click doesn't work when cellEdit is true

Open
#375 14 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
2.2k
Forks
761
PR merge metrics
No merged PRs in 30d

Description

I am having an issue with rows not deselecting when clicked on (selecting works fine) with cellEdit in place. There are 3 columns of which only the last one is editable, clicking on the row in column 1 or 2 doesn't deselect the row, right now deselecting only works when you click the checkbox. I am using the following settings for selectRow and cellEdit:

```
var selectRowProp = {
mode: "checkbox",
clickToSelect: true,
clickToSelectAndEditCell: true,
className: 'success',
selected: selected,
hideSelectColumn: false,
onSelect: this.handleRowSelect
};
var cellEdit = {
mode: "click",
blurToSave: true
};
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.