rob-balfre / svelte-select

Svelte Select. A select component for Svelte
https://svelte-select-examples.vercel.app
Other
1.25k stars 175 forks source link

Multiple Selection Not Possible With Async Option Call #607

Open wergeld opened 1 year ago

wergeld commented 1 year ago

Setup: svelte 3.53.1 svelte-select 5.6.1 bootstrap 5.1.3

Asynchronous call to get selectable options via keyword works. Selecting one option closes list of options when closeListOnChange is still set to false and multiple is set to true.

Expected result: Keyword search returns options. User picks on option which adds to the selection but it does not close the drop down menu nor should it clear the list of possible options.

Generic example: https://svelte.dev/repl/2ce6b4f2352f47c3b74a49c284a2e7fa?version=4.0.0

Put in a search term that returns multiple options. Unable to select more than 1.

rob-balfre commented 1 year ago

Not currently something that is possible. Good feature to support though. Closet I've got is this one https://svelte-select-examples.vercel.app/examples/advanced/multi-item-checkboxes (not ideal)

Nice v6 feature to add 👍