]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
fix: fix search on page load
authorroyto <royto81+github@gmail.com>
Mon, 21 Aug 2023 20:29:03 +0000 (22:29 +0200)
committerBastien Wirtz <bastien.wirtz@gmail.com>
Mon, 16 Oct 2023 19:57:38 +0000 (12:57 -0700)
Fix #611

src/App.vue
src/components/SearchInput.vue

index 16e814bd92e2f2b0185b74ad236ab42e5a56fe08..446db31a6685ff02eb50cc97d52df776fb7b4151 100644 (file)
@@ -50,7 +50,7 @@
         <SearchInput
           class="navbar-item is-inline-block-mobile"
           :hotkey="searchHotkey()"
-          @input="filterServices($event.target?.value)"
+          @input="filterServices($event)"
           @search-focus="showMenu = true"
           @search-open="navigateToFirstService($event?.target?.value)"
           @search-cancel="filterServices()"
index 53480e7e17d4d6f247f7b3c8e09128a045bf5a2b..6b21ba95df70618a065f3eb6792d507d5f307a80 100644 (file)
@@ -5,7 +5,7 @@
       type="text"
       ref="search"
       :value="value"
-      @input="search($event.target.value)"
+      @input.stop="search($event.target.value)"
       @keyup.enter.exact="open()"
       @keyup.alt.enter="open('_blank')"
     />