fix search

feat/vaults
Tomáš Mládek 2022-01-10 22:28:46 +01:00
parent 5222734ce8
commit 835dec73d4
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@
let searchQuery = $searchMatch?.params.query || "";
$: if (!$location.pathname.includes("search")) searchQuery = "";
function onInput(event: InputEvent & { target: HTMLInputElement }) {
searchQuery = event.target.value;
function onInput(event: CustomEvent<string>) {
searchQuery = event.detail;
if (searchQuery.length > 0) {
navigate(`/search/${searchQuery}`);