fix: allow numbers as item ids for ComboBox, Dropdown, MultiSelect

This commit is contained in:
Eric Liu 2020-10-24 14:43:57 -07:00
commit 392fc452e2
3 changed files with 3 additions and 3 deletions

View file

@ -235,7 +235,7 @@
</button>
{#if open}
<ListBoxMenu aria-labelledby="{id}" id="{id}">
{#each items as item, i (item.id || i)}
{#each items as item, i (item.id)}
<ListBoxMenuItem
id="{item.id}"
active="{selectedIndex === i || selectedId === item.id}"