dbrekalo / fastselect

Fastselect is lightweight browser plugin for enhanced select elements based on jQuery. Enables fast and sensible UI upgrade of select element with features like option searching and remote dataset loading.
http://dbrekalo.github.io/fastselect/
MIT License
108 stars 87 forks source link

Multiple selectable options text input #1

Closed kevintc closed 9 years ago

kevintc commented 9 years ago

Hello !

Great tool :) In your first example "Multiple selectable options", if I type : "fra" I get the correct option and I can select "France". However, when selecting "France", the input area is not cleared from the "fra" I just typed... Is there any way to avoid this kind of behavior ?

Thanks a lot :)

dbrekalo commented 9 years ago

Thanks for great feedback @kevintc!

Your suggestions definitely make sense from UI perspective and are now implemented in plugin as default behavior.

There are still cases where keeping query after item select makes sense. Following snippet should cover you then:

$('select').fastselect({clearQueryOnSelect: false});