From 459e517c864f91acf0d3f2d09f45924976b0083d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 09:16:49 +0100 Subject: [PATCH] [DataGrid] Add `name` attribute to selection checkboxes (@derek-0000) (#16041) Co-authored-by: Derek Alvarado Co-authored-by: Andrew Cherniavskii --- .../src/components/columnSelection/GridCellCheckboxRenderer.tsx | 2 +- .../src/components/columnSelection/GridHeaderCheckbox.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/x-data-grid/src/components/columnSelection/GridCellCheckboxRenderer.tsx b/packages/x-data-grid/src/components/columnSelection/GridCellCheckboxRenderer.tsx index 39fcc5883d361..db833a69087a8 100644 --- a/packages/x-data-grid/src/components/columnSelection/GridCellCheckboxRenderer.tsx +++ b/packages/x-data-grid/src/components/columnSelection/GridCellCheckboxRenderer.tsx @@ -114,7 +114,7 @@ const GridCellCheckboxForwardRef = forwardRef 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)}