pstanoev / simple-svelte-autocomplete

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

How to create a new entry beginning with a matching existing entry #219

Open b3b00 opened 6 months ago

b3b00 commented 6 months ago

Hello,

I have a use case where I need to create a new entry to the list and that entry matches the beginning of an existing entry. take a look at : https://svelte.dev/repl/19e4f2ca832046e697066ddbbd9ba0f1?version=4.2.12 We have 3 listed items :

if I want to create a new entry "Jean" the component does not fire the oncreate event but instead select the first matching item (Jean-Louis) I understand that this is an expected behavior. Is there any way to achieve my need ?

thanks