rob-balfre / svelte-select

Svelte Select. A select component for Svelte
https://svelte-select-examples.vercel.app
Other
1.27k stars 180 forks source link

virtual-list can't be filtered #597

Open andreasnuesslein opened 1 year ago

andreasnuesslein commented 1 year ago

Hello @rob-balfre :wave:

I stumbled over an issue trying to use the virtual list solution from your examples page (https://svelte-select-examples.vercel.app/examples/advanced/virtual-list)

I created a REPL where the only difference is, that i show the {value} underneath in the h1.

https://svelte.dev/repl/e42518d3efb04cbb8339c282c16d0031?version=3.59.1

When you select any item of the list, it works nicely, but when you filter the list and then select something the offset is gonna be the index but from the original items, not from the filteredItems.

Do you have a recommendation for that?

Cheers