Skip to content

[data grid] Skeleton Loading Overlay Triggers Error with Master Detail Panel Containing Another DataGrid #14061

@4everTonyStark

Description

@4everTonyStark

Latest version

  • I have tested the latest version

Steps to reproduce

Link to live example: https://stackblitz.com/edit/react-kpvefc?file=Demo.tsx

Steps:

  1. Open a row's Detail Panel.
  2. Click "Toggle Loading" to show the Skeleton Loading Overlay.
  3. Open the console to observe the error that is logged from the DataGrid.

Current behavior

When the Skeleton Loading Overlay renders over a DataGrid with an open detail panel, and the detail panel contains a DataGrid component, an error is logged from the DataGrid within the row detail panel that it has no intrinsic size.

Expected behavior

No errors should be logged. I would think either the overlay should be a true overlay on top of the existing content, or detail panels should be removed or hidden before the overlay is applied. I've tried switching the getDetailPanelContent prop to undefined when loading is true, but that doesn't seem to fix the issue.

Context

Allowing the DataGrid to show the Skeleton Loading Overlay while a master detail panel is opened and not log any errors.

Your environment

npx @mui/envinfo
  System:
    OS: macOS 14.5
  Binaries:
    Node: 20.11.1 - ~/Library/Caches/fnm_multishells/173_1722440156564/bin/node
    npm: 10.2.4 - ~/Library/Caches/fnm_multishells/173_1722440156564/bin/npm
    pnpm: 9.6.0 - ~/Library/Caches/fnm_multishells/173_1722440156564/bin/pnpm
  Browsers:
    Chrome: 127.0.6533.73
    Edge: Not Found
    Safari: 17.5

I see this bug in Chrome. I have not tested Safari.

Search keywords: skeleton loading overlay, master detail

Metadata

Metadata

Assignees

Labels

feature: Master-detailRelated to the data grid Master-detail featurefeature: Row loadingRelated to the data grid Row loading featuresscope: data gridChanges related to the data grid.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions