question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Opening multiple dialogs simultaneously does not focus the top dialog

See original GitHub issue

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When multiple dialogs are open the focus should transfer to the next dialog when closing the first one.

What is the current behavior?

The next dialog is not in focus when closing one dialog.

What are the steps to reproduce?

Providing a StackBlitz/Plunker (or similar) is the best way to get the team to see your issue.
Plunker starter (using on @master): https://goo.gl/DlHd6U
StackBlitz starter (using latest npm release): https://goo.gl/wwnhMV
http://plnkr.co/edit/L3mmNpTBRKnWL5Edn9SX?p=preview Press button Open two dialogs, then press enter repeatedly. It should close both dialogs, but instead dialog second dialog is closed on first enter and after that first dialog is not closed but the Open two dialogs button is focused and two new dialogs are opened on pressing enter.

What is the use-case or motivation for changing an existing behavior?

To be able to close all dialogs with keypress and not focus stuff that is behind the dialog.

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

All material versions

Is there anything else we should know?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
crisbetocommented, Oct 26, 2017

It doesn’t work because you’re opening them at the same time. Dialogs move focus after the animation is finished.

0reactions
angular-automatic-lock-bot[bot]commented, Jan 30, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Opening multiple dialogs simultaneously does not focus the ...
Press button Open two dialogs, then press enter repeatedly. It should close both dialogs, but instead dialog second dialog is closed on first ......
Read more >
How to control opening multiple dialogs - Stack Overflow
I am able to open modal dialog on button click but multiple dialog are opened when we continuously click on button. How we...
Read more >
Dialog Focus in Screen Readers - Adrian Roselli
Managing focus for a modal is conceptually straightforward. Whatever launched the modal receives focus again when the modal closes. Easy-peasy.
Read more >
Keyboard shortcuts for Access - Microsoft Support
You might need to press F6 more than once. If pressing F6 doesn't display the task pane you want, press Alt to move...
Read more >
Info Windows | Maps JavaScript API - Google Developers
If you do need more than one info window, you can display multiple InfoWindow objects at the same time. Open an info window....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found