= 0 ? id + "-" + active : undefined} {disabled} onclick={() => open ? close() : show()} onkeydown={key}>
{selected?.label ?? "Choose"}
{#each options as option, index (option.value)}
highlight(index, false)} onmousedown={(event) => event.preventDefault()} onclick={() => choose(index)} onkeydown={(event) => { if (event.key === "Enter") choose(index) }}>
{option.label}
{#if option.value === value}
{/if}
{/each}