svelte-select icon indicating copy to clipboard operation
svelte-select copied to clipboard

Select module inside {#each } loop triggers on:select event multiple times

Open BioMatti opened this issue 1 year ago • 0 comments

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:

  1. Creating Select modules inside loop
  2. The Select module grab the value from the loop ({#each}) variable
  3. Changing the loop variable when selecting a new item will trigger the refresh of the Select module
  4. Unexpectedly we get a new on:select event call.

BioMatti avatar Sep 14 '22 17:09 BioMatti