If Combobox openOnFocus is true then also open when the input is clicked.#757
If Combobox openOnFocus is true then also open when the input is clicked.#757chaance merged 2 commits intoreach:developfrom
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 37eddb9:
|
|
I'm not sure this is needed. Here is an example where this behaves as expected. Do you have a reproduced issue where this doesn't already work? |
Your example shows exactly the behaviour I think is a problem. The first time you click the input the list shows. If you click one of the list options it is selected and the lists closes. Intuitively, if I want to open the list again I will click again on the input. Doing so does not open the list. This has been discussed further here : #758 The users I build for are far happier if they click to reopen the list and it certainly seems better to me, but perhaps we are unique. Using a fork isn't too problematic so I'm just doing that. However I think the component would be better if it supported this user story. |
|
Ah, I see now. Thanks for linking to the issue for more context, I must have missed or forgotten that one. I'll take another look at this soon! |
I was surprised to discover that clicking on the input doesn't automatically open the ComboboxList. This means that there is no way to make a selection using the mouse alone.
openOnFocus is enough for the 1st click, but after selecting a value the input retains focus, so the only way to open it again without using the keyboard is to click away and click back.
Reopening the list if the user clicks again on the input seems a sensible strategy.