Restore quick search functionality.

This commit is contained in:
Leo Vasanko
2023-11-04 00:57:54 +00:00
parent 5f1eb0503a
commit 115bb5db59
62 changed files with 66 additions and 65 deletions

View File

@@ -18,7 +18,7 @@ const toggleSearchInput = () => {
})
}
const executeSearch = (ev: InputEvent) => {
const executeSearch = (ev: Event) => {
// FIXME: Make reactive instead of this update handler
const query = (ev.target as HTMLInputElement).value
console.log('Searching', query)
@@ -49,6 +49,7 @@ const executeSearch = (ev: InputEvent) => {
v-model="searchQuery"
class="margin-input"
@keyup.esc="toggleSearchInput"
@input="executeSearch"
/>
</template>
</div>