Cancelable search query

This commit is contained in:
Simon Cambier
2023-05-13 22:04:37 +02:00
parent 8b7cd2d3e3
commit 0d6907abbd
3 changed files with 17 additions and 6 deletions

View File

@@ -12,7 +12,6 @@
const dispatch = createEventDispatcher()
export function setInputValue(v: string): void {
console.log('setinput')
value = v
}
@@ -42,7 +41,7 @@
// the next time we open the modal, the search field will be empty
cacheManager.addToSearchHistory('')
dispatch('input', value)
}, 250)
}, 300)
</script>
<div class="omnisearch-input-container">