(listOpen = true)} oninput={() => { listOpen = true; activeIndex = 0; }} onkeydown={onKeydown} placeholder="Найдите инструмент…" aria-label="Поиск инструмента" role="combobox" aria-expanded={listOpen} aria-controls="tool-search-list" /> {#if listOpen && query.trim().length > 0 && matches.length === 0}

Ничего не найдено — попробуйте другое слово.

{:else if listOpen && matches.length > 0}
{#each matches as match, index (match.id)} choose(match.id)} onHover={() => (activeIndex = index)} /> {/each}
{/if}