Skip to content

How do i set handleContainerOverflow in ModalManager to false #14980

@Sojborg

Description

@Sojborg

When a Dialog opens body overflow: hidden is set which makes the site/content behind "jump" to the right. Opening and closing just a few dialogs in a row make a bad ux.

In the code i can ModalManager by default set document.body.style to overflow: hidden:

https://github.com/mui-org/material-ui/blob/next/packages/material-ui/src/Modal/ModalManager.js#L78

How do i set handleContainerOverflow = false so my Dialog doesn't set body style to overflow: hidden?

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists.scope: modalChanges related to the modal.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions