-
-
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] Error while resizing pinned columns #12046
Comments
Small update: This seems to only happen when react strict mode is enabled. If I disable strict mode in next config, the error goes away. Edit: No, my bad. It still happens but intermittently. I guess strict mode calling effects twice in development mode might have something to do with it. Surfacing the problem more in a more deterministic way. |
@romgrk this seems related to #10059 ... The problem is that the mui-x/packages/x-data-grid-pro/src/hooks/features/columnResize/useGridColumnResize.tsx Lines 419 to 422 in eba5169
It seems like it never gets rendered in the first place, although it should according to this, when using the demo from the docs on column pinning: mui-x/packages/x-data-grid/src/components/virtualization/GridVirtualScrollerFiller.tsx Lines 57 to 69 in eba5169
Could you check that please? nit: the class param on the |
Probably closed with #12209. Can you confirm if it's still reproducible? |
Since the original issue is resolved I will close this now. I have created a new issue for the resize handle width. Thanks @romgrk!!! 🚀 |
How did we do @eknkc? |
Steps to reproduce
On the 7 beta 2, datagrid-pro seems to cause an error when one tries to pin a column and then resize it.
Looks like the error happens here:
mui-x/packages/x-data-grid-pro/src/hooks/features/columnResize/useGridColumnResize.tsx
Line 361 in 20129ab
fillerLeftRef.current
is null in my case.Here's the error in my Next.js error handler:
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: reading 'style'
Order ID: 84197
The text was updated successfully, but these errors were encountered: