Describe the bug
DataTable - Frozen rows + CellSelection:"single" when we click and selecting one cell, two are highlighted, one from frozen column, another from value in dataTable
DataTable props:
<DataTable
value={customers}
frozenValue={lockedCustomers}
cellSelection
selectionMode="single"
selection={selectedCell}
onSelectionChange={(e) => setSelectedCell(e.value)}
scrollable
scrollHeight="400px"
tableStyle={{ minWidth: '50rem' }}
dataKey="id"
>
Test sandbox
https://stackblitz.com/edit/o1ch7jx7?file=src%2FApp.jsx
Reproducer
https://stackblitz.com/edit/o1ch7jx7?file=src%2FApp.jsx
System Information
"primereact": "latest",
"react": "18.3.1",
Steps to reproduce the behavior
-In Datatable with frozen rows + cellSelection single click on frozen cell
-Frozen cel is highlited
-First "not frozen" cell is also higlited
Expected behavior
Single cell should be highlighted
Describe the bug
DataTable - Frozen rows + CellSelection:"single" when we click and selecting one cell, two are highlighted, one from frozen column, another from value in dataTable
DataTable props:
<DataTable
value={customers}
frozenValue={lockedCustomers}
cellSelection
selectionMode="single"
selection={selectedCell}
onSelectionChange={(e) => setSelectedCell(e.value)}
scrollable
scrollHeight="400px"
tableStyle={{ minWidth: '50rem' }}
dataKey="id"
>
Test sandbox
https://stackblitz.com/edit/o1ch7jx7?file=src%2FApp.jsx
Reproducer
https://stackblitz.com/edit/o1ch7jx7?file=src%2FApp.jsx
System Information
Steps to reproduce the behavior
-In Datatable with frozen rows + cellSelection single click on frozen cell
-Frozen cel is highlited
-First "not frozen" cell is also higlited
Expected behavior
Single cell should be highlighted