sergiodlopes / jquery-flexdatalist

Flexible input autocomplete/datalist plugin for jQuery
http://projects.sergiodinislopes.pt/flexdatalist/
MIT License
365 stars 84 forks source link

Hide selected options when minLength=0 #233

Open kennysong opened 2 years ago

kennysong commented 2 years ago

Fantastic library! It's perfect for our use case.

When using multiple='multiple' and data-min-length='0', selected options still show up in the dropdown. It would be great to filter these out, like the results do when you start typing.

Here's what it looks like in our UI:

Screen Shot 2021-10-18 at 10 38 12 PM

Starting a search does correctly filter out selected results:

Screen Shot 2021-10-18 at 10 40 00 PM