Skip to content

Commit cb8bcdb

Browse files
committed
Clear search results when remove search query
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent ca747b9 commit cb8bcdb

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

core/src/views/UnifiedSearch.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,9 @@ export default {
435435
436436
// Do not search if not long enough
437437
if (this.query.trim() === '' || this.isShortQuery) {
438+
for (let type of this.typesIDs) {
439+
this.$delete(this.results, type)
440+
}
438441
return
439442
}
440443

dist/core-unified-search.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-unified-search.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)