Skip to content

Commit

Permalink
Hide drag handle if all the cells in a column are readonly (#3354)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanmahajan7 authored Oct 2, 2023
1 parent 5480250 commit 1f58311
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,10 @@ function DataGrid<R, SR, K extends Key>(
}

const column = columns[selectedPosition.idx];
if (column.renderEditCell == null || column.editable === false) {
return;
}

const columnWidth = getColumnWidth(column);

return (
Expand Down

0 comments on commit 1f58311

Please sign in to comment.