Skip to content

Bug: Focus still on "open dialog" button after clicked #5713

Closed

Description

@xuanshenbo

Bug, feature request, or proposal:

Bug

What are the steps to reproduce?

Use the doc site example: https://material.angular.io/components/dialog/examples
Set focus on the "Launch dialog" button, and hit Enter key multiple times as fast as you can, multiple dialogs will show

What is the expected behavior?

Only one dialog should show

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

Angular Material 2.0.0-beta.8

Is there anything else we should know?

The reason obviously is because the dialog is not yet initiated immediately after hitting Enter , therefore focus is still on the button. Not sure how we can resolve this.

Activity

  1. self-assigned this
    on Jul 14, 2017
  2. added a commit that references this issue on Jul 14, 2017
    14e3595
  3. added 2 commits that reference this issue on Jul 19, 2017
    8442054
    4efef12
  4. added 2 commits that reference this issue on Jul 24, 2017
    af803fe
    9ab5519
  5. added a commit that references this issue on Jul 25, 2017
    36f708c
  6. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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