diff --git a/html/src/app.js b/html/src/app.js index 0234ebec..d127d04a 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -6894,6 +6894,7 @@ speechSynthesis.getVoices(); } else { this.showUserDialog(value); } + this.quickSearchVisibleChange(value); } }; @@ -6901,6 +6902,7 @@ speechSynthesis.getVoices(); $app.methods.quickSearchVisibleChange = function (value) { if (value) { this.quickSearch = ''; + this.quickSearchItems = []; } }; @@ -8251,6 +8253,9 @@ speechSynthesis.getVoices(); }); $app.methods.clearSearch = function () { + this.searchText = ''; + this.searchUserParams = {}; + this.searchWorldParams = {}; this.searchUserResults = []; this.searchWorldResults = []; this.searchAvatarResults = []; diff --git a/html/src/index.pug b/html/src/index.pug index 7add0d6e..4d95e3d2 100644 --- a/html/src/index.pug +++ b/html/src/index.pug @@ -221,7 +221,7 @@ html //- search .x-container(v-show="$refs.menu && $refs.menu.activeIndex === 'search'") div(style="margin:0 0 10px;display:flex;align-items:center") - el-input(v-model="searchText" clearable placeholder="Search" @keyup.native.13="search()" style="flex:1") + el-input(v-model="searchText" placeholder="Search" @keyup.native.13="search()" style="flex:1") el-tooltip(placement="bottom" content="Clear search results" :disabled="hideTooltips") el-button(type="default" @click="clearSearch()" icon="el-icon-delete" circle style="flex:none;margin-left:10px") el-tabs(ref="searchTab" type="card" style="margin-top:15px")