[Feature Request] Allow for login popup to be refocused
See original GitHub issueCore Library
MSAL.js v2 (@azure/msal-browser)
Wrapper Library
Not Applicable
Description
Apologies if this is already supported by the library - I can’t seem to find documentation as to how it works (despite being closed as completed in #181)
This is basically the same ask as #181.
Use case
- User clicks sign in (application calls
loginPopup
) - User accidentally or intentionally clicks on the host window, thereby hiding the login popup
- User clicks sign in again, host application again calls
loginPopup
Current behaviour
Nothing happens, since a popup is already open, MSAL throws interaction_in_progress
Desired behaviour The existing window is refocused so that the user is brought back into context
Source
Internal (Microsoft)
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Feature Request: option to bring window to front when new ... - GitHub
Hi, it would be great if yakyak had a feature that allows it to come to the front of the screen (come into...
Read more >Built-in mechanism to have a message “pop-up” following a ...
Is there a built-in mechanism to have a message “pop-up” following a successful login to display an information message to the users?
Read more >Incorrect example in API.txt [#1304286] | Drupal.org
In API.txt, there is an example for Popups.open() which is missing the first argument for "popup". However, I think it would be better...
Read more >37 Types of Popups to Use on Your Website (the Ultimate ...
That's why OptinMonster created a trigger that allows you to specifically ask users to turn off their AdBlock. That's right, a popup to...
Read more >Feature request: Provide method to retrieve application “client ...
I have a need to vary the look and feel and functionality of the Universal Login Page based on which client the user...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had this same issue recently when using meal-react.
As a workaround, you can listen for the “POPUP_OPENED” event. The event returns the popup window in its payload which you can store. In your onClick handler for your sign in button, you can first check if you have a reference to the popup window and if you do, you can focus it which will bring it back to the front.
The code might look something like this:
cc @EmLauber