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

+3
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

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-unified-search.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)