Skip to content

Commit

Permalink
[DataGrid] Add name attribute to selection checkboxes (@derek-0000) (
Browse files Browse the repository at this point in the history
…#16041)

Co-authored-by: Derek Alvarado <derekalvarado24@outlook.com>
Co-authored-by: Andrew Cherniavskii <andrew.cherniavskii@gmail.com>
  • Loading branch information
3 people authored Jan 6, 2025
1 parent 9dfc78a commit 459e517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const GridCellCheckboxForwardRef = forwardRef<HTMLInputElement, GridRenderCellPa
checked={checked}
onChange={handleChange}
className={classes.root}
inputProps={{ 'aria-label': label }}
inputProps={{ 'aria-label': label, name: 'select_row' }}
onKeyDown={handleKeyDown}
indeterminate={isIndeterminate}
disabled={!isSelectable}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const GridHeaderCheckbox = forwardRef<HTMLButtonElement, GridColumnHeaderParams>
checked={checked}
onChange={handleChange}
className={classes.root}
inputProps={{ 'aria-label': label }}
inputProps={{ 'aria-label': label, name: 'select_all_rows' }}
tabIndex={tabIndex}
onKeyDown={handleKeyDown}
disabled={!isMultipleRowSelectionEnabled(rootProps)}
Expand Down

0 comments on commit 459e517

Please sign in to comment.