Re-trigger the search when the query or singleFileSearch change

This commit is contained in:
Simon Cambier
2022-04-18 10:59:09 +02:00
parent 6cb113b87e
commit 3168a89070
4 changed files with 14 additions and 18 deletions

View File

@@ -10,8 +10,8 @@ const dispatch = createEventDispatcher()
onMount(async () => {
await tick()
elInput.focus()
elInput.select()
elInput.value = $searchQuery
elInput.select()
})
const debouncedOnInput = debounce(() => $searchQuery = inputValue, 100)