mskocik / svelecte

Flexible autocomplete/select component written in Svelte,
https://svelecte.vercel.app
MIT License
472 stars 44 forks source link

Store values in on:change handler give 'store.subscribe is not a function' #252

Closed EniacMlezi closed 3 weeks ago

EniacMlezi commented 1 month ago

It seems like store functions get wiped somewhere before the on:change handler is reached. Check this REPL.

Are Stores (and passing functions in general) not supported?

mskocik commented 1 month ago

Functions are unexpected, just simple objects should be in options array. Svelecte creates internal copy it anyway. If you change options but still keep the same valueField property, I think it should work

github-actions[bot] commented 4 weeks ago

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 3 days.