Closed slaweet closed 1 year ago
It doesn't even need any special focus methods.
When in a searchable
Multiselect you select an option via keyboard (either arrow keys or search), you can't open the dropdown via mouse until you unfocus the Multiselect.
In single
and multiple
modes, not even the caret works. In tags
mode, the caret is fine but not clicking the free space/input.
Selecting by arrow keys in a non-searchable one doesn't have that problem.
This JSFiddle contains searchable Multiselects for all three modes, you can verify it there:
Enter
, the number gets selected
Version
Description
Actual behaviour
If I focus searchable multiselect in a way that doesn't open the options (e.g. clicking the associated
<label/>
, or keyboard tab), it's no longer possible to open the options by clicking the focused multiselect. I have to click away to remove the focus and only then it works.Expected behaviour
Clicking the focused multiselect opens the options (if not already open) in the same way as clicking it non-focused.
Demo
https://jsfiddle.net/xgjokvc5/