Skip to content
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] The data grid (pro version) throws an error when resizing column if skeleton overlay is used (Chromium browsers only). #16127

Open
Th3N3tRunn3r opened this issue Jan 10, 2025 · 3 comments
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@Th3N3tRunn3r
Copy link

Th3N3tRunn3r commented Jan 10, 2025

Steps to reproduce

Steps:

  1. Create a data grid pro with 6 columns. (The amount does not seem to change the outcome this is just my config.)
  2. Set the loading overlay to; loadingOverlay: { variant: 'linear-progress', noRowsVariant: 'skeleton' }
  3. Let the data grid populate.
  4. Try to resize a column in Edge or Chrome. You should receive an error like so; MUI X: Expected skeleton cells to be defined with data-field attribute.

Current behavior

When creating a data grid (pro version) with loadingOverlay: { variant: 'linear-progress', noRowsVariant: 'skeleton' } it throws an error when resizing a column in the Edge and Chrome browsers. If you then switch 'skeleton' to 'linear-progress' the error does not occur.

Expected behavior

The data grid shouldn't throw an error when resizing a column in the Edge or Chrome browsers.

Context

I wish to use the skeleton overlay for my data grids are loading their rows.

Your environment

npx @mui/envinfo
  System:
    OS: macOS 15.2
  Binaries:
    Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v20.14.0/bin/npm
    pnpm: Not Found
  Browsers:
    Edge, Chrome both have this issue.
    Safari does not.
  npmPackages:
    react:  18.3.1 
    @mui/x-data-grid-pro: 7.23.6,

Search keywords: overlay, data, grid, skeleton

@Th3N3tRunn3r Th3N3tRunn3r added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 10, 2025
@github-actions github-actions bot added the component: data grid This is the name of the generic UI component, not the React module! label Jan 10, 2025
@michelengelen
Copy link
Member

To help us diagnose the issue efficiently, could you provide a stripped-down reproduction test case using the latest version? A live example would be fantastic! ✨

For your convenience, our documentation offers templates and guides on creating targeted examples: Support - Bug reproduction

Just a friendly reminder: clean, functional code with minimal dependencies is most helpful. Complex code can make it tougher to pinpoint the exact issue. Sometimes, simply going through the process of creating a minimal reproduction can even clarify the problem itself!

Thanks for your understanding! 🙇🏼

@michelengelen michelengelen added status: waiting for author Issue with insufficient information support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/ and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 13, 2025
@Th3N3tRunn3r
Copy link
Author

Th3N3tRunn3r commented Jan 14, 2025

Hey Michelengelen,

Thank you for getting back to me. I have been able to reproduce the issue as a live demo, I am just trying to work out how to share that with you. If I can't share it, should I just paste the code here?

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Jan 14, 2025
@michelengelen
Copy link
Member

you can just use a codesandbox. We have templates in every example to be used in the docs. Just click the codesandbox button and it will open with the respective example.

Image

@michelengelen michelengelen added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Projects
None yet
Development

No branches or pull requests

2 participants