primereact icon indicating copy to clipboard operation
primereact copied to clipboard

DataTable - Frozen rows + CellSelection:"single" - when selecting a cell, two are highlighted

Open xmNuc opened this issue 4 months ago • 0 comments

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" >

Image

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

xmNuc avatar Sep 11 '25 11:09 xmNuc