fix(webui): clear searchbox results on blur

This commit is contained in:
Gauthier Roebroeck 2021-07-05 09:57:38 +08:00
parent 3db3181313
commit e1a2cecce4

View file

@ -19,6 +19,7 @@
:search-input.sync="search"
:menu-props="{maxHeight: $vuetify.breakpoint.height * .9, minWidth: $vuetify.breakpoint.mdAndUp ? $vuetify.breakpoint.width * .4 : $vuetify.breakpoint.width * .8}"
@keydown.esc="clear"
@blur="clear"
ref="searchbox"
>
<template v-slot:selection>
@ -191,7 +192,6 @@ export default Vue.extend({
}, 500),
clear() {
this.search = null
// this.selectedItem = null
this.showResults = false
this.series = []
this.books = []