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

Error with keydown event. It throw undefined value #523

Closed geminway92 closed 1 year ago

geminway92 commented 1 year ago

Using the select in a personal project, I found this issue relationed in the on:keydown event (I assume that). I post a video with the problem. Each time a press Enter key with any item selected, it throws an error trying to read the option defined for each item (in the example the param is id).

Here is the video.

https://user-images.githubusercontent.com/88619799/212737109-7c6fd89c-8298-4037-9999-6485731b0fe2.mov

Thanks.

rob-balfre commented 1 year ago

@geminway92 apologies I hadn't updated that example... on:select became on:change during beta. Also found a juicy little hover index bug, fixing now. Thanks

rob-balfre commented 1 year ago

Fixed in 5.1.3