-
-
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] How do I fix this? - GridVirtualScrollbar.js:88 Uncaught TypeError: Cannot set properties of null (setting 'scrollTop')
#13301
Comments
GridVirtualScrollbar.js:88 Uncaught TypeError: Cannot set properties of null (setting 'scrollTop')
GridVirtualScrollbar.js:88 Uncaught TypeError: Cannot set properties of null (setting 'scrollTop')
Hey @swensel I cannot reproduce the issue you are mentioning. Is there any customization you did to the data grid? |
Hi @michelengelen , thanks, there are custom styles, but none should affect the scrollbar. When the page first loads, the grid is fine. The issue occurs after re-rendering the grid, i.e. when our custom quick filters are triggered, it can happen, but the issue is sporadic. It seems to be a bit of an edge case. However, the issue is within the library, so there's not really anything we can do. Would it maybe make sense to catch this error within the library? Also, on Here are the custom styles for reference:
The table is also wrapped in |
So, the grid is fine until there are things rendered that come later? In your case you do render quickfilters after the initial render, is that correct? That could already be a hint to whats going wrong. Could you try to replicate using a minimal reconstruction of your implementation? Without that it will be near impossible to find the issue. |
The issue has been inactive for 7 days and has been automatically closed. |
Hi @michelengelen, the plan is to try to provide a standalone demo. That is just going to take some time as my team has other priorities. Should I file a new issue for that when it is ready, since this was automatically closed? Thanks. |
No, you can open a new one once the demo is ready and reference this! 👍🏼 |
@swensel: 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. |
I'm not the original poster, but I did encounter the same error. I created a repo dedicated to recreating and documenting the error here: https://github.com/theodoremoreland/mui-x-data-grid-bug-demo I used two combinations of package versions to similar effect. The main branch features older versions as those are similar to what I use at work (where I encountered the error). The other branch uses latest versions for most packages. I will consider deploying the code and/or creating a new issue tomorrow. |
I created a new issue with demo and reproduce steps here: #14987 |
The problem in depth
I'm facing an issue and I'm not sure how easy it will be to create a simple reproducible example for this, but I'm wondering if there's any pointers you can give.
I have upgraded the following libraries:
to these new versions, and that's when I started to notice this issue:
I have a grid that is using
@mui/x-data-grid-pro
, that also has some custom quick filters.Sometimes, after selecting or clearing the quick filters, I get this error:
That is coming from inside the MUI library:
There's no way I can catch this error or anything, due to it being from inside the library. The grid still loads after, but it looks pretty bad on local, and it will also be logged to the console regardless.
I did find this scrollTop issue mentioned in the v4 to v5 migration, which looks like a similar error, but I don't think it is the same case. I don't see anything mentioned about the specific error in the v5 to v6 migration or v6 to v7 migration docs.
Any idea how to fix or catch this error?
Thanks.
Your environment
`npx @mui/envinfo`
Search keywords: scrolltop
Order ID: 90881
The text was updated successfully, but these errors were encountered: