-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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] Adding border to grid main element causes infinite rerender #8737
Comments
I cannot reproduce it in v5: https://codesandbox.io/s/data-grid-community-forked-7rtqzc?file=/src/App.tsx |
#8577 fixes it, but with a side-effect of horizontal scroll bar: |
The issue seems to come from the fact that we use mui-x/packages/grid/x-data-grid/src/hooks/features/dimensions/useGridDimensions.ts Lines 226 to 237 in aba4549
We can use |
I've run into a related issue with the upgrade to v6 (6.2.0) - the horizontal scrollbar appears while scrolling the list. I forked a demo sandbox here to illustrate.
Also if you set the Box to |
Hello :),
I still see this issue in 6.8.0. Is your fix going to go in the next release @cherniavskii ? |
Demo: https://codesandbox.io/s/data-grid-community-forked-3ctumy
.MuiDataGrid-main
(this one can be fixed by moving the border from main container element to root)
Originally posted by @Deraen in #8447 (comment)
The text was updated successfully, but these errors were encountered: