primereact icon indicating copy to clipboard operation
primereact copied to clipboard

DataTable: row selection conflicts with cell edit mode

Open BAISTM opened this issue 11 months ago • 0 comments

Describe the bug

On setting the property selectOnEdit to false, I expect the cell edition to not conflicts with the row selection, but currently, when I unselect a row, the cell switch to the edit mode.

Reproducer

https://stackblitz.com/edit/lzu4hr?file=src%2FApp.jsx

PrimeReact version

10.3.1

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Select a row on clicking on the first cell
  2. Unselect this row
  3. The clicked cell switch to the edit mode

Expected behavior

The cell edition should only be enabled on double click and not at the second click in order to not conflicts with the selection/unselection behavior.

BAISTM avatar Mar 20 '24 12:03 BAISTM