Replace $root.showSearch() with app.appRoute('search')

`$root.showSearch()` prevents going back to previous page from sidebar.
This commit is contained in:
Monochromish 2022-07-27 07:54:56 +10:00
parent 251dc25ac4
commit b51e44a2f7

View file

@ -7,11 +7,11 @@
<input <input
type="search" type="search"
spellcheck="false" spellcheck="false"
@click="$root.showSearch()" @click="app.appRoute('search');"
@focus="$root.search.showHints = true" @focus="$root.search.showHints = true"
@blur="$root.setTimeout(()=>{$root.search.showHints = false}, 300)" @blur="$root.setTimeout(()=>{$root.search.showHints = false}, 300)"
v-on:keyup.enter="$root.searchQuery();$root.search.showHints = false" v-on:keyup.enter="$root.searchQuery();$root.search.showHints = false"
@change="$root.showSearch();" @change="app.appRoute('search');"
@input="$root.getSearchHints()" @input="$root.getSearchHints()"
:placeholder="$root.getLz('term.search') + '...'" :placeholder="$root.getLz('term.search') + '...'"
v-model="$root.search.term" v-model="$root.search.term"