Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: popup window fails to gain focus after email verification #56

Open
akhileshthite opened this issue Feb 11, 2024 · 0 comments
Open
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@akhileshthite
Copy link
Member

After a user clicks to log in, a popup window is created for email verification. However, once the email is verified and the user is expected to return to the popup, the window does not come to the forefront as intended, even after invoking popupWindow.focus(). Additionally, popupWindow is logged as null in the useEffect hook, suggesting that the window reference is lost.

Steps to Reproduce

  1. Enter your email and click on the 'Login' button to trigger the popup window.
  2. Navigate away from the popup window to check email for verification.
  3. Verify the email.
  4. Expect the popup window to come into focus automatically.

code:

if (popupWindow) {

setPopupWindow(newWindow);

@akhileshthite akhileshthite added bug Something isn't working good first issue Good for newcomers labels Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant