-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
How to unfocus the Select component after selecting an item? #11690
Labels
component: select
This is the name of the generic UI component, not the React module!
Comments
To my surprise I was able to achieve the desired behaviour. I have added private onExitedRegionSelect(node: HTMLElement): void {
// At this point it can only be a child of the Select root
(document.activeElement as HTMLElement).blur();
} |
ghost
closed this as completed
Jun 3, 2018
Thank you @nearautomata !! |
up, the onExited method has some delay |
This was referenced Nov 17, 2020
This was referenced Dec 1, 2020
oliviertassinari
added
the
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
label
Dec 20, 2022
zannager
added
component: select
This is the name of the generic UI component, not the React module!
and removed
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
labels
Jan 9, 2023
This was referenced Jun 24, 2023
This was referenced Nov 30, 2023
This was referenced Jan 10, 2024
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to know how I can unfocus the select component that is showcased [here][1] after making a selection. After selecting an item the input label is active as well as the button in the background and I'd like to automatically unfocus it after making a selection. You can see this behaviour in this gif:
The text was updated successfully, but these errors were encountered: