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

Trigger on mousedown? #585

Open space-nuko opened 1 year ago

space-nuko commented 1 year ago

Could there be an option to trigger the select on mouse/pointerdown instead of pointerup? Would make it more responsive, otherwise there's a small delay between when the mouse is clicked and when the options appear

Thanks for the library by the way, it otherwise works excellent

steppenwolfXYZ commented 6 months ago

Would be really great to have that fixed. I have a dropdown of another framework that closes on mousedown. If I click on a dropdown element directly above the svelte-select input, it then opens. That would be fixed with changing the event from pointerup to click or pointerdown.