fix search
This commit is contained in:
parent
74e1e3d38a
commit
1d8b39aa01
4 changed files with 4 additions and 4 deletions
|
@ -68,7 +68,7 @@
|
||||||
"run-script-os": "^1.1.6",
|
"run-script-os": "^1.1.6",
|
||||||
"source-map-support": "^0.5.21",
|
"source-map-support": "^0.5.21",
|
||||||
"ts-md5": "1.2.11",
|
"ts-md5": "1.2.11",
|
||||||
"upnp-mediarenderer-client": "github:vapormusic/node-upnp-mediarenderer-client",
|
"upnp-mediarenderer-client": "git+https://github.com/vapormusic/node-upnp-mediarenderer-client.git",
|
||||||
"v8-compile-cache": "^2.3.0",
|
"v8-compile-cache": "^2.3.0",
|
||||||
"wallpaper": "5.0.1",
|
"wallpaper": "5.0.1",
|
||||||
"ws": "^8.8.1",
|
"ws": "^8.8.1",
|
||||||
|
|
|
@ -280,7 +280,7 @@
|
||||||
<input type="search" spellcheck="false" @click="$root.appRoute('search');search.showHints = true"
|
<input type="search" spellcheck="false" @click="$root.appRoute('search');search.showHints = true"
|
||||||
@focus="search.showHints = true"
|
@focus="search.showHints = true"
|
||||||
@blur="setTimeout(()=>{if(hintscontext != true){search.showHints = false} }, 300)"
|
@blur="setTimeout(()=>{if(hintscontext != true){search.showHints = false} }, 300)"
|
||||||
v-on:keyup.enter="searchQuery(search.hints[search.cursor].content ?? search.hints[search.cursor].searchTerm);search.showHints = false;search.cursor = -1" @change="$root.appRoute('search');"
|
v-on:keyup.enter="searchQuery(search.hints[search.cursor]?.content ?? search.hints[search.cursor]?.searchTerm ?? search.term);search.showHints = false;search.cursor = -1" @change="$root.appRoute('search');"
|
||||||
v-on:keyup="searchCursor"
|
v-on:keyup="searchCursor"
|
||||||
@input="getSearchHints()"
|
@input="getSearchHints()"
|
||||||
:placeholder="$root.getLz('term.search') + '...'" v-model="search.term" ref="searchInput"
|
:placeholder="$root.getLz('term.search') + '...'" v-model="search.term" ref="searchInput"
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
@click="$root.appRoute('search');$root.search.showHints = true"
|
@click="$root.appRoute('search');$root.search.showHints = true"
|
||||||
@focus="$root.search.showHints = true"
|
@focus="$root.search.showHints = true"
|
||||||
@blur="$root.setTimeout(()=>{if($root.hintscontext != true){$root.search.showHints = false} }, 300)"
|
@blur="$root.setTimeout(()=>{if($root.hintscontext != true){$root.search.showHints = false} }, 300)"
|
||||||
v-on:keyup.enter="$root.searchQuery($root.search.hints[$root.search.cursor].content ?? $root.search.hints[$root.search.cursor].searchTerm);$root.search.showHints = false;$root.search.cursor = -1"
|
v-on:keyup.enter="$root.searchQuery($root.search.hints[$root.search.cursor]?.content ?? $root.search.hints[$root.search.cursor]?.searchTerm ?? $root.search.term);$root.search.showHints = false;$root.search.cursor = -1"
|
||||||
v-on:keyup="$root.searchCursor"
|
v-on:keyup="$root.searchCursor"
|
||||||
@change="$root.appRoute('search');"
|
@change="$root.appRoute('search');"
|
||||||
@input="$root.getSearchHints()"
|
@input="$root.getSearchHints()"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="search-input--icon"></div>
|
<div class="search-input--icon"></div>
|
||||||
<input type="search" spellcheck="false" @focus="$root.search.showHints = true"
|
<input type="search" spellcheck="false" @focus="$root.search.showHints = true"
|
||||||
@blur="$root.setTimeout(()=>{if($root.hintscontext != true){$root.search.showHints = false} }, 300)"
|
@blur="$root.setTimeout(()=>{if($root.hintscontext != true){$root.search.showHints = false} }, 300)"
|
||||||
v-on:keyup.enter="$root.searchQuery($root.search.hints[$root.search.cursor].content ?? $root.search.hints[$root.search.cursor].searchTerm);$root.search.showHints = false" @input="$root.getSearchHints()"
|
v-on:keyup.enter="$root.searchQuery($root.search.hints[$root.search.cursor]?.content ?? $root.search.hints[$root.search.cursor]?.searchTerm ?? $root.search.term);$root.search.showHints = false" @input="$root.getSearchHints()"
|
||||||
:placeholder="$root.getLz('term.search') + '...'" v-model="$root.search.term"
|
:placeholder="$root.getLz('term.search') + '...'" v-model="$root.search.term"
|
||||||
class="search-input" />
|
class="search-input" />
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue