Skip to content

Dialog/Overlay doesn't block scrolling if page dimensions change #16165

@diminutivesloop

Description

@diminutivesloop

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/components-issue-kktbjg

Steps to reproduce:

  1. Click the Open Dialog button.
  2. Wait 3 seconds for images to appear behind the dialog.

Expected Behavior

When a dialog is open and scroll blocking is enabled the content behind the dialog should not be scrollable.

Actual Behavior

If the content behind the dialog is not scrollable when the dialog is opened and then becomes scrollable while the dialog is still open then scroll blocking does not work. This can happen either when new page content loads or when the window is resized to be smaller.

Environment

  • Angular: 8.0.0
  • CDK/Material: 8.0.0
  • Browser(s): Chrome 74.0.3729.169
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: cdk/overlay

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions