Skip to content

Conversation

@sgoth
Copy link

@sgoth sgoth commented Feb 19, 2024

This allows users to bring their own handler <Select on:keydown={myKeyDownHandler} />.

I use it to reset internal state of a complex search bar on top of svelte-select when hitting ESC

@vercel
Copy link

vercel bot commented Feb 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-select ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2024 8:38am

@mgholam
Copy link

mgholam commented Sep 2, 2025

Hi, I have added this code but I'm not getting the event.

<Select items={list} on:keydown={(e) => console.log(e)} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants