-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[data grid] Updates handled with onRowSelectionModelChange
while using treeData
results in an error
#14859
Comments
treeData
that specifies the onRowSelectionModelChange
prop which updates state results in erroronRowSelectionModelChange
while using treeData
results in an error
It seems this is a bug with codesandbox and/or stackblitz... i cannot reproduce this locally.
I did also try to isolate the bug by removing all |
As in the example renders fine in a browser for you locally, or the test in the linked example succeeds for you? I'd have thought the test would fail locally too... |
I did not run the tests, but since the recent CI runs where not complaining I guess this is not surfacing there as well ... |
I don't think that PR is related, there is no React related change in that PR. |
Right @siriwatknp ... sry for the confusion. It must have been a recent change introduced in v7.19.0 of the grid. Running this with v7.18.0 works. @arminmeh do you have any idea where that error comes from? |
Could it be related to the changes in Automatic parent selection PR @MBilalShafi? |
It seems like a side effect of #14677 During the first render, when the I tried a fix in #14909 |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @DoodleBobBuffPants How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example: https://stackblitz.com/edit/mui-datagrid-treedata-repro-ircjfa0?file=README.md,package.json
Steps:
onRowSelectionModelChange
Current behavior
An error (well, a warning logged to
console.error
)Expected behavior
There shouldn't be an error
Context
This fails in 7.19.0 but works in 7.18.0
Your environment
npx @mui/envinfo
Also fails on a Windows machine when run in an Electron app; the above is for the StackBlitz repro
Search keywords: DataGridPro treeData state error react
Order ID: 65425
The text was updated successfully, but these errors were encountered: