Closed fedeperin closed 4 months ago
<Select itemId="name" ... >
More explicitly:
Unless you provide an alternative field name as the itemId
prop, svelte-select
assumes that the id of each item is contained in a field called value
. Once an item has been selected, any items with the same id will be highlighted. In your case, selecting any item hghlights all of them: the field is missing from all the items, so they are all treated as having the same id (undefined
).
Thanks, my problem got solved adding the itemId.
Video of the issue:
Video
I'm having a problem, the second time that I try to select an item the options change it's background to a blue one and they are no more selectable. The code is the following: