Skip to content

bug(popups): Material popups shown from native HTML dialog don't register mouse events. #32770

@nawlbergs

Description

@nawlbergs

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

Mouse events not registering on multiple material components inside native Dialog.

Originally they appeared behind the dialog due to being created outside of #top-layer.
#25799

Now they mostly just don't work. They appear in-front of dialog... but mouse events (click/hover) don't register.
https://stackblitz.com/edit/stackblitz-starters-wmwfsj8g?file=src%2Fmain.ts

Reproduction

StackBlitz link: https://stackblitz.com/edit/stackblitz-starters-wmwfsj8g?file=src%2Fmain.ts
Steps to reproduce:

  1. click button to open a native dialog
  2. click any of the material components

Expected Behavior

The MatMenu and DatePicker should work as expected.

Actual Behavior

Ignores mouse events.

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions