harvesthq / chosen

Deprecated - Chosen is a library for making long, unwieldy select boxes more friendly.
http://harvesthq.github.io/chosen/
Other
21.85k stars 4.1k forks source link

Autoselect first value #2685

Open brechmos opened 8 years ago

brechmos commented 8 years ago

Is there a setting in order to auto select the first option if they don't physically select it?

For example, in the example Standard Select if I type "a" (to see Afghanistan, Aland Islands etc) and then click somewhere else on the page, I would like it to auto-select the first entry, in this case Afghanistan.

It is beautiful otherwise!

koenpunt commented 8 years ago

You mean "select on blur"? I believe this has been asked before.

koenpunt commented 8 years ago

Although I'm on mobile right now, so it's hard to search through issues

koenpunt commented 8 years ago

A question that arises; how to hide the results without selecting an option?