Skip to content

[DataGrid] Fix singleSelect clearing to use empty string instead of null#22881

Merged
michelengelen merged 2 commits into
mui:masterfrom
michelengelen:bugfix/datagrid/22842
Jun 22, 2026
Merged

[DataGrid] Fix singleSelect clearing to use empty string instead of null#22881
michelengelen merged 2 commits into
mui:masterfrom
michelengelen:bugfix/datagrid/22842

Conversation

@michelengelen

Copy link
Copy Markdown
Member

Pressing Delete/Backspace on a singleSelect cell was setting the value to null, which caused the Select to warn about an out-of-range value. The correct empty value for a Select is '', consistent with how row editing mode already handles the clear case.

Fixes #22842

…null

Pressing Delete/Backspace on a singleSelect cell was setting the value to
null, which caused MUI Select to warn about an out-of-range value. The
correct empty value for a Select is '' (empty string), consistent with how
row editing mode already handles the clear case.

Fixes mui#22842

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@michelengelen michelengelen self-assigned this Jun 18, 2026
@michelengelen michelengelen added type: bug It doesn't behave as expected. scope: data grid Changes related to the data grid. labels Jun 18, 2026
@code-infra-dashboard

code-infra-dashboard Bot commented Jun 18, 2026

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-22881--material-ui-x.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid ▼-3B(0.00%) ▼-3B(0.00%)
@mui/x-data-grid-pro ▼-3B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium ▼-3B(0.00%) ▼-2B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@michelengelen
michelengelen merged commit 07a8343 into mui:master Jun 22, 2026
21 checks passed
@michelengelen
michelengelen deleted the bugfix/datagrid/22842 branch June 22, 2026 05:39
mbrookes pushed a commit to mbrookes/mui-x that referenced this pull request Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: data grid Changes related to the data grid. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[data grid] clearing 'singleSelect' sets input to null, valueParser is not called

2 participants