implement clearing search input on start typing

+ rename pages folder to fetch in composables folder
This commit is contained in:
geoffrey45
2022-08-02 23:58:05 +03:00
parent ef2926f18f
commit c562e529fd
14 changed files with 16 additions and 14 deletions
+4 -2
View File
@@ -46,7 +46,7 @@ const app_dom = document.getElementById("app");
const route = useRoute();
const router = useRouter();
// function to add the
// function to add the
queue.readQueue();
useShortcuts(useQStore);
@@ -73,7 +73,9 @@ router.afterEach((to, from) => {
});
onStartTyping(() => {
document.getElementById("globalsearch").focus();
const elem = document.getElementById("globalsearch") as HTMLInputElement;
elem.focus();
elem.value = "";
});
</script>