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

new feature: create new item on blur #417

Closed PPP01 closed 2 years ago

PPP01 commented 2 years ago

Hi, i added a feature to add items automatically on blur. My users are sometimes too inexperienced (or too old) to understand that they have to confirm the creation (by mouse or enter). Therefore, I have added an option that automatically creates a new item, if the input is not empty.

rob-balfre commented 2 years ago

@PPP01 thanks again but this can be achieved without adding more props...

https://svelte.dev/repl/a1c5a78ba88d4a2a9ac7c2c8fa3f1f5d?version=3.48.0