Skip to content

Commit

Permalink
Clear search results when remove search query
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
  • Loading branch information
CarlSchwan committed Sep 19, 2022
1 parent ca747b9 commit cb8bcdb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions core/src/views/UnifiedSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@ export default {

// Do not search if not long enough
if (this.query.trim() === '' || this.isShortQuery) {
for (let type of this.typesIDs) {
this.$delete(this.results, type)
}
return
}

Expand Down
4 changes: 2 additions & 2 deletions dist/core-unified-search.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-unified-search.js.map

Large diffs are not rendered by default.

0 comments on commit cb8bcdb

Please sign in to comment.