primereact
primereact copied to clipboard
DataTable: row selection conflicts with cell edit mode
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
- Select a row on clicking on the first cell
- Unselect this row
- 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.