Skip to content

Commit

Permalink
disable pointer if row header disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHung committed Jul 12, 2024
1 parent 3875ab0 commit c18416b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/internal/data-grid/data-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ const DataGrid: React.ForwardRefRenderFunction<DataGridRef, DataGridProps> = (p,
const [overFill, setOverFill] = React.useState(false);

const [hCol, hRow] = hoveredItem ?? [];
const headerHovered = hCol !== undefined && hRow === -1;
const headerHovered = hCol !== undefined && hRow === -1 && columns[hCol].headerRowMarkerDisabled !== true;
const groupHeaderHovered = hCol !== undefined && hRow === -2;
let clickableInnerCellHovered = false;
let editableBoolHovered = false;
Expand All @@ -940,6 +940,7 @@ const DataGrid: React.ForwardRefRenderFunction<DataGridRef, DataGridProps> = (p,
: headerHovered || clickableInnerCellHovered || editableBoolHovered || groupHeaderHovered
? "pointer"
: "default";
console.log("CURSOR", cursor, cursorOverride, headerHovered);
const style = React.useMemo(
() => ({
// width,
Expand Down

0 comments on commit c18416b

Please sign in to comment.