Fix enter selecting an option when there is no term. Closes #84

This commit is contained in:
Jon Staab
2026-02-25 10:01:08 -08:00
parent c970038943
commit 3da0334083
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
let items: string[] = $state([])
const populateItems = throttle(300, term => {
items = search(term).slice(0, 5)
items = term ? search(term).slice(0, 5) : []
})
const setIndex = (newIndex: number, block: any) => {