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

Continue filtering after selection #603

Closed tomasz13nocon closed 1 year ago

tomasz13nocon commented 1 year ago

I'd like to have the selected item as the input value, to be able to continue typing.

User selects "twenty" -> user types " two" -> value becomes "twenty two"

Is this possible?

rob-balfre commented 1 year ago

@tomasz13nocon hmm not seen that kind of behaviour in a select before. Got an example? Thanks

tomasz13nocon commented 1 year ago

I've since rolled my own solution for this from scratch, but I wanted to have a combobox with autocomplete. For example adding tags. The select shows matching, existing tags, but if the user doesn't select anything they can add a new tag.

rob-balfre commented 1 year ago

@tomasz13nocon something like this? https://svelte-select-examples.vercel.app/examples/advanced/create-item-multiple

tomasz13nocon commented 1 year ago

Yes, that would work for tags. Another use case was a form with autocomplete for previously used names.