-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Close dropdown when clicking on select #211
Comments
Clicking on the select itself should not close menu (only focus cursor inside the input), here is a solution - click on arrow should close menu. |
Close dropdown when clicking on select #211
I agree with @nkbt, that seems like the correct behaviour. Otherwise placing the cursor at a different point in the text (with the mouse) would also close the menu, which would be unexpected. If there's strong disagreement let me know and we can reopen the issue for discussion. |
Hi guys, I feel I should add my input on this too. My opinion is that for non-searchable version it should have the HTML |
@raulmatei that totally makes sense. I am going to update component to support this behavior. |
On this I disagree, for the the same reason that clicking a textbox shouldn't remove its focus. |
created PR #243 with suggested fix for this issue |
@brianreavis - I understand your point, but isn't the arrow indicating that you can hide/close the dropdown by clicking on it (without losing the focus on the select-control input element)? |
That seems like a usual behavior of |
proposed fix #211 - close dropdown when clicking on select
Sorry I left this for so long - fell completely off my radar. I agree this behaviour makes sense when the select is not searchable, so I've merged #243 and will release a patch soon. |
right now the dropdown only closes when clicking somewhere outside of the select-control.
so: the user opens the dropdown by clicking on the select element, but has to move the mouse outside the element in order to close it (if he doesn't want to select any of the options)
it would be nice to add functionality so the dropdown opens when clicking on the select-control, and closes when clicking on it while the dropdown is open
The text was updated successfully, but these errors were encountered: