fix: selection column should be sticky especially when columns are frozen (#1466)

* bulk selection bug fix

* space lint fix
This commit is contained in:
Anush Deokar
2023-11-06 20:52:38 +05:30
committed by GitHub
parent 934fc6ff4b
commit 3616326276
2 changed files with 3 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ export const TableBody = memo(function TableBody({
if (cell.id.includes("_rowy_select")) {
return (
<StyledCell key={cell.id} role="gridcell">
<StyledCell key={cell.id} role="gridcell" data-frozen="left">
{flexRender(cell.column.columnDef.cell, cell.getContext())}
</StyledCell>
);

View File

@@ -79,7 +79,8 @@ export const TableHeader = memo(function TableHeader({
<StyledColumnHeader
key={header.id}
role="columnheader"
style={{ padding: 0 }}
style={{ padding: 0, zIndex: 11 }}
data-frozen="left"
>
{flexRender(
header.column.columnDef.header,