Skip to content

Commit

Permalink
[DataGrid] Fix loading overlay not in sync with scroll (mui#16437)
Browse files Browse the repository at this point in the history
  • Loading branch information
MBilalShafi authored and A-s-h-o-k committed Feb 4, 2025
1 parent 9d47e5f commit 3f9c4bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export const useGridOverlays = () => {
if (loading) {
overlayType = 'loadingOverlay';
loadingOverlayVariant =
rootProps.slotProps?.loadingOverlay?.[noRows ? 'noRowsVariant' : 'variant'] || null;
rootProps.slotProps?.loadingOverlay?.[noRows ? 'noRowsVariant' : 'variant'] ??
(noRows ? 'skeleton' : 'linear-progress');
}

const overlaysProps = { overlayType, loadingOverlayVariant };
Expand Down

0 comments on commit 3f9c4bb

Please sign in to comment.