pstanoev / simple-svelte-autocomplete

Simple Autocomplete / typeahead component for Svelte
http://simple-svelte-autocomplete.surge.sh/
MIT License
464 stars 78 forks source link

Regression? A click on an empty, async input doesn't open the suggestions #172

Open francoislg opened 2 years ago

francoislg commented 2 years ago

I have been playing around with this library a bit, and can't seem to figure out if there is a way to have the suggestions open when clicking on an empty box that has async data with 2.4.0. It used to work with 2.2.0, I upgraded all up to 2.3.9 without issues, but 2.4.0 seems to break it.

For instance, compare any Basic usage from the documentation. Click on the box, it opens with the initial suggestions.

However, with the Async one, they don't open unless you type one letter.

I have tried minCharactersToSearch={0}, but it doesn't seem to change anything.

Is this simply not supported any more? Is this a regression?

My use case for this was to have a real search based on keywords, but use the "top 10 popular" as the default list on click (which I think is pretty legitimate).

pstanoev commented 2 years ago

This is a regression and will be fixed.

pstanoev commented 1 year ago

Can you please test this on version 2.5.0?

francoislg commented 1 year ago

Still doesn't work :/ On Oct. 18, 2022, 11:04 -0400, pstanoev @.***>, wrote:

Can you please test this on version 2.5.0? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>