AllenFang / AllenFang/react-bootstrap-table

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

未关闭
#375 14 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
JavaScript
星标
2.2k
派生
761
PR 合并指标
30 天内没有已合并 PR

描述

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
};
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。