svelte-select
svelte-select copied to clipboard
Select module inside {#each } loop triggers on:select event multiple times
As demonstrated by the following repl there is an issue when the Select module is used inside a {#each } loop
https://svelte.dev/repl/23a5e5bca2fe496496d7de69e7279b90?version=3.50.1
Situation:
- Creating Select modules inside loop
- The Select module grab the value from the loop ({#each}) variable
- Changing the loop variable when selecting a new item will trigger the refresh of the Select module
- Unexpectedly we get a new on:select event call.