e.key === 'Enter' && toggleDropdown()} role="combobox" aria-haspopup="listbox" aria-expanded={isOpen} tabindex={disabled ? -1 : 0} {...restProps} >
{selectedLabel || placeholder}
{#if isOpen}
e.stopPropagation()} autofocus />
{#each filteredOptions as option}
{ e.stopPropagation(); selectOption(option); }} onkeydown={(e) => e.key === 'Enter' && selectOption(option)} role="option" aria-selected={option.value === selected} > {option.label}
{/each} {#if filteredOptions.length === 0}
No options found
{/if}
{/if}