rob-balfre / svelte-select

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

Feature: Allow custom characters to trigger item create #381

Open addiebarron opened 2 years ago

addiebarron commented 2 years ago

Hello, thanks for the fantastic component! I think it would be very cool and useful to allow spaces and other characters to trigger an item creation when typing, such as when using isMulti and isCreatable together for e.g. emails or other whitespace-less strings. If this is already possible let me know how I can set it up that way. Thanks so much!

rob-balfre commented 2 years ago

Not currently, but would be a good option to have. Thanks for suggesting.

ar4hc commented 1 year ago

possible way for a workaround is perhaps in Examples: https://svelte-select-examples.vercel.app/examples/advanced/create-item Needs some modifications but...