Skip to content

Commit

Permalink
fix(mespapiers): Scroll from body on Desktop
Browse files Browse the repository at this point in the history
We have always had a problem with the internal scroll (paper)
of the StepperModal in Desktop mode.
In order to offer a better experience in this mode,
it is preferable that the scroll be at the level of the body.
  • Loading branch information
Merkur39 committed May 30, 2023
1 parent ed29ba0 commit bcb75c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const StepperDialog = ({
const { dialogProps, dialogTitleProps, fullScreen } = useCozyDialog(rest)

return (
<MUIDialog {...dialogProps}>
<MUIDialog {...dialogProps} scroll={isMobile ? 'paper' : 'body'}>
{!fullScreen && onClose && <DialogCloseButton onClick={onClose} />}
{onBack && <DialogBackButton onClick={onBack} />}
<DialogTitle
Expand Down

0 comments on commit bcb75c7

Please sign in to comment.