Skip to content

bug(popups): Material popups shown from native HTML dialog appear behind dialog #25799

@jattasNI

Description

@jattasNI

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

When components that display a popup (like Select or DateTIme) are placed inside a native HTML dialog, the popup appears behind the dialog rather than inside or in front of it.

Reproduction

Steps to reproduce:

  1. Open this StackBlitz
  2. Click the button to show the dialog
  3. Click on the select and/or the calendar button

Expected Behavior

The popup for the select and calendar are visible in front of the dialog and are interactable.

Actual Behavior

The popups are obscured behind the dialog. The parts that appear behind it are not interactive because of the dialog overlay.

Environment

  • Angular: 14.1.3 (also reproduced in 12)
  • CDK/Material: 14.1.3
  • Browser(s): Reproduced in Safari, Firefox, and Chromium
  • Operating System: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/overlay

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions