DataTable: editor is still activated on cell click when editMode is off #6735
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
If a
<Column />
is configured with aneditor
, the editor is still activated on click regardless of theeditMode
setting. Also, some weird behaviour occurs in this situation, more than one cell editor can appear.Reproducer
https://stackblitz.com/edit/vitejs-vite-iibrgb?file=src%2FApp.tsx
PrimeReact version
10.6.6
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
<DataTable />
'seditMode
tonull
,undefined
or remove the property<Column />
s with an editorExpected behavior
The cell's editor should not appear on click unless
editMode
is"cell"
The text was updated successfully, but these errors were encountered: