Skip to content

Dialog Focus Management broken #9107

Closed
Closed
@Hirse

Description

@Hirse

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Tabbing through the elements of the dialog will keep focus inside of the dialog element, wrapping back to the first tabbable element when reaching the end of the tab sequence.
(see https://material.angular.io/components/dialog/overview#focus-management)

What is the current behavior?

Tab focus leaves the dialog.

What are the steps to reproduce?

https://material.angular.io/components/dialog/overview
https://stackblitz.com/angular/nvvoleongadd

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Current (or the one used for the Angular Material website).
Observed in Firefox and Chrome.

Firefox:
2017-12-22_18-48-29

Chrome:
2017-12-22_18-50-33
It might not be easy to see, but the focus is on the first button in the header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions