@trisolaran, I saw you closing the issue, and have already updated to live_select
1.4.3, and it works beautifully! Thank you very much for that, and yes, I will look into past issues in the future, sorry.
How do you picture that exactly? the user has to be able to change the selection, and to do that, they have to be able to type in the input field. Hard to imagine how they can do that if the text of the selection stays in the input field.
I realise what you’re saying, and part of me agrees with your design decision.
However, I feel that—and this is subjective, I know—to follow the principle of least astonishment, it would be better to keep the current input intact, and use the fact that you have already provided the allow_clear
option to deal with exactly the problem you describe above—clicking the ‘x’ icon will clear the input. This also seems to me to follow the standards set by comboboxes since Mac OS and Windows development environments established in the 90s: clicking the ‘expand’ arrow opened the options, with the current result left in place, and it and its neighbouring options shown in the dropdown selections.
Another reason to do this is that the suddenness of the change may result in making the user apprehensive to touch the field, hurting UX. Finally, it feels like it could also be an accessibility problem.
I provide a few compelling examples of exactly this in action (to varying degrees of user-friendliness), taken from popular sites on the internet:
And another, a jQuery select component, which takes a completely different approach, but does the same thing effectively:
Sorry I uploaded so many examples, but I feel that each is subtly different, promoting a different way of doing the same thing. One thing that is very good is that some of them, when clicked/focused for a second time, automatically highlight the currently selected option—in addition to keeping it in the search box—which, it seems would be very easy to do in live_select
.