Skip to content

Commit

Permalink
[DataGrid] Fix GridOverlays bypassing pointer events (#5674)
Browse files Browse the repository at this point in the history
  • Loading branch information
philjones88 committed Aug 12, 2022
1 parent f0231d3 commit 2b10cdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ function GridOverlayWrapper(props: React.PropsWithChildren<{}>) {
position: 'absolute',
top: headerHeight,
bottom: height === 'auto' ? 0 : undefined,
zIndex: 4, // should be above pinned columns, pinned rows and detail panel
pointerEvents: 'none',
}}
{...props}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ const GridOverlayRoot = styled('div', {
slot: 'Overlay',
overridesResolver: (props, styles) => styles.overlay,
})(({ theme }) => ({
display: 'flex',
position: 'absolute',
top: 0,
zIndex: 4, // should be above pinned columns, pinned rows and detail panel
width: '100%',
height: '100%',
pointerEvents: 'none',
display: 'flex',
alignSelf: 'center',
alignItems: 'center',
justifyContent: 'center',
Expand Down

0 comments on commit 2b10cdd

Please sign in to comment.