Skip to content

DialogHost CloseDialogCommand is not triggered by Esc due to unexpected focus behavior #4076

Description

@yoi102

Bug explanation

As shown in the video below, the focus behavior of the DialogHost seems incorrect.

After clicking the dialog, pressing the Esc key does not trigger materialDesign:DialogHost.CloseDialogCommand, so the dialog remains open.

When pressing the Tab key, the focus appears to move to the content inside the DialogHost itself, rather than staying within the dialog. As a result, the content inside the DialogHost becomes focused/selected.

Video:
https://github.com/user-attachments/assets/58a8465d-cda2-44ee-a2bc-a11516511553

Version

5.3.3-ci1412

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugevaluation requiredItems is pending review or evaluation by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions