Skip to content

[data grid] Fix MissingRowIdError on cell mousedown/mouseup after row removal - #23261

Open
kareem-ib wants to merge 1 commit into
mui:masterfrom
kareem-ib:fix/datagrid-cell-mousedown-missingrowid-guard
Open

[data grid] Fix MissingRowIdError on cell mousedown/mouseup after row removal#23261
kareem-ib wants to merge 1 commit into
mui:masterfrom
kareem-ib:fix/datagrid-cell-mousedown-missingrowid-guard

Conversation

@kareem-ib

@kareem-ib kareem-ib commented Jul 31, 2026

Copy link
Copy Markdown

We've been seeing MissingRowIdError crashes when a user clicks a row that has just
been cleared from the grid's internal row list (e.g. rapid clicks under a filter that
drops the row).

The GridCell mousedown/mouseup handlers call getCellParams without first
checking that the row still exists. The click path (publish) already guards this as
it checks getRow(rowId) and its comment explicitly notes the row may be gone
("The row might have been deleted during the click").

This adds that guard to both handlers, plus a test covering click/mousedown/mouseup
after a row is removed.

Changelog

Fixed a MissingRowIdError crash when a cell received a mousedown/mouseup after its
row had been removed from the grid.


AI-assisted (Claude Opus 4.8).

@code-infra-dashboard

code-infra-dashboard Bot commented Jul 31, 2026

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-23261--material-ui-x.netlify.app/
QR code for https://deploy-preview-23261--material-ui-x.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 🔺+62B(+0.01%) 🔺+3B(0.00%)
@mui/x-data-grid-pro 🔺+62B(+0.01%) 🔺+3B(0.00%)
@mui/x-data-grid-premium 🔺+62B(+0.01%) 🔺+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-scheduler 0B(0.00%) 0B(0.00%)
@mui/x-scheduler-premium 0B(0.00%) 0B(0.00%)
@mui/x-chat 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.

@zannager zannager added the scope: data grid Changes related to the data grid. label Aug 3, 2026
@kareem-ib
kareem-ib force-pushed the fix/datagrid-cell-mousedown-missingrowid-guard branch from c860816 to 4fc7283 Compare August 4, 2026 22:08
@kareem-ib
kareem-ib force-pushed the fix/datagrid-cell-mousedown-missingrowid-guard branch from 4fc7283 to 462ea99 Compare August 17, 2026 20:52
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants