search page only appears on enter

This commit is contained in:
Core 2022-09-11 03:13:54 +01:00
parent ce598e8b2c
commit 350521ddaf
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0
4 changed files with 9 additions and 6 deletions

View file

@ -10,7 +10,7 @@
@click="$root.appRoute('search');$root.search.showHints = true"
@focus="$root.search.showHints = true"
@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.term);$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.showSearchView = true;$root.search.cursor = -1"
v-on:keyup="$root.searchCursor"
@change="$root.appRoute('search');"
@input="$root.getSearchHints()"
@ -34,7 +34,7 @@
</button>
<template v-for="(item, position) in $root.search.hints.filter((a) => {return a.content != null})">
<mediaitem-smarthints :item="item.content" :position="position"> </mediaitem-smarthints>
</template>
</template>
</div>
</div>
</div>