Skip to content

Commit

Permalink
[@mantine/core] Modal: Prevent overlay from sitting on top of scrollb…
Browse files Browse the repository at this point in the history
…ar (#2445)
  • Loading branch information
IdrisIsra committed Sep 14, 2022
1 parent b2c3786 commit 92305e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-core/src/Modal/Modal.tsx
Expand Up @@ -262,7 +262,7 @@ export function Modal(props: ModalProps) {
<Overlay
className={classes.overlay}
sx={{ position: 'fixed' }}
zIndex={0}
zIndex={-1}
onMouseDown={() => closeOnClickOutside && onClose()}
blur={overlayBlur}
color={
Expand Down

0 comments on commit 92305e2

Please sign in to comment.