-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
ClickAwayListener for Focus? #45047
Comments
Hey, @Matt-Butler, thanks for reaching out. Have you tried using the blur event ( |
Thanks for the recommendation @DiegoAndai Here is more context. I am building a custom multi select tree. I'm using the Popper component. I think this behavior might be fairly similar to the autocomplete component. Screen.Recording.2025-01-17.at.10.07.48.AM.movI'm probably missing something simple. |
|
This is what ended up working for me: |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @Matt-Butler How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Thanks @DiegoAndai |
Summary
Hey there!
I was wondering if there's something similar to the ClickAwayListener but for focus events. I'm building a custom input with a Popper, and I want to close it when a user tabs out. For clicks, the ClickAwayListener works perfectly, but it would be great if it also handled tabbing away. Does something like this exist?
Thank you for your time!
Examples
No response
Motivation
No response
Search keywords: ClickAwayListener
The text was updated successfully, but these errors were encountered: