aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorroyto <royto81+github@gmail.com>2023-08-21 22:29:03 +0200
committerBastien Wirtz <bastien.wirtz@gmail.com>2023-10-16 12:57:38 -0700
commita3c5b4ac9dd1ddf2b52fff48ea860c067fb05cf9 (patch)
treed4b318084b1df67b0864dbaa56f9161c2494b6e4
parent86f3fbbfafb2954143fc3c0d15f1d27984e90ed8 (diff)
downloadhomer-a3c5b4ac9dd1ddf2b52fff48ea860c067fb05cf9.tar.gz
homer-a3c5b4ac9dd1ddf2b52fff48ea860c067fb05cf9.tar.zst
homer-a3c5b4ac9dd1ddf2b52fff48ea860c067fb05cf9.zip
fix: fix search on page load
Fix #611
-rw-r--r--src/App.vue2
-rw-r--r--src/components/SearchInput.vue2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/App.vue b/src/App.vue
index 16e814b..446db31 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -50,7 +50,7 @@
50 <SearchInput 50 <SearchInput
51 class="navbar-item is-inline-block-mobile" 51 class="navbar-item is-inline-block-mobile"
52 :hotkey="searchHotkey()" 52 :hotkey="searchHotkey()"
53 @input="filterServices($event.target?.value)" 53 @input="filterServices($event)"
54 @search-focus="showMenu = true" 54 @search-focus="showMenu = true"
55 @search-open="navigateToFirstService($event?.target?.value)" 55 @search-open="navigateToFirstService($event?.target?.value)"
56 @search-cancel="filterServices()" 56 @search-cancel="filterServices()"
diff --git a/src/components/SearchInput.vue b/src/components/SearchInput.vue
index 53480e7..6b21ba9 100644
--- a/src/components/SearchInput.vue
+++ b/src/components/SearchInput.vue
@@ -5,7 +5,7 @@
5 type="text" 5 type="text"
6 ref="search" 6 ref="search"
7 :value="value" 7 :value="value"
8 @input="search($event.target.value)" 8 @input.stop="search($event.target.value)"
9 @keyup.enter.exact="open()" 9 @keyup.enter.exact="open()"
10 @keyup.alt.enter="open('_blank')" 10 @keyup.alt.enter="open('_blank')"
11 /> 11 />