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

Dropdown | Doesn't blur input and close options container when window loses focus #491

Open
aVileBroker opened this issue Dec 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@aVileBroker
Copy link
Contributor

Scenario is to

  • Open a dropdown, then move focus from the browser window
  • The dropdown may or may not close
  • On return to the window, the dropdown may still be open, but without any focus within it
  • Because of this, the dropdown can't get an onBlur event, because it isn't focused
  • It will stay open until an onBlur event, which can only occur if the user tabs back to the input to focus it and then click away

AC

  • Dropdown checks every render if it is open AND not focused
  • If it is open without focus, it calls the onBlur function so the user can be notified
@aVileBroker aVileBroker added the enhancement New feature or request label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant