(isInputFocused = true)} onblur={() => (isInputFocused = false)} />
e.preventDefault()} onCloseAutoFocus={(e: Event) => e.preventDefault()} avoidCollisions={false} strategy="absolute" > {#each filteredSuggestions as suggestion, index}
handleSuggestionClick(suggestion)} onkeydown={(e) => { if (e.key === 'Enter') handleSuggestionClick(suggestion); }} class="hover:bg-accent hover:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 {selectedIndex === index ? 'bg-accent text-accent-foreground' : ''}" > {suggestion}
{/each}