-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Select doesn't close on click to it #242
Comments
Anyone facing this, remove renderOption={(props, optionData, { highlighted, selected }) => <li {...props}>...</li>} |
For anyone else having the same problem in the future, it's not a js issue. it's a CSS issue. You can add this to have "close on blur" functionality: .form-group-container:not(.form-group-has-focus) .form-group-select {
display: none;
} |
To add to @fmmajd 's answer, to get this working with css modules, you need to supply definitions for the classes /* yourReactSelectSearch.module.css */
/* required even if empty, otherwise classnames are never assigned */
.container {}
.has-focus {}
.select {}
.container:not(.has-focus) .select {
display: none;
} It appears that the example default |
this fixed my issue and I find this pretty janky, shouldn't take all this research to get it to look like the demo. Also I would encourage the devs to have this work with tailwind. |
When click on select it opens and when to click it again it doesn't close
But in storybook demos this functionality works properly
Help please
The text was updated successfully, but these errors were encountered: