Skip to content

Commit 0ff0270

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

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
@@ -444,6 +444,9 @@ export default {
444444

445445
// Do not search if not long enough
446446
if (this.query.trim() === '' || this.isShortQuery) {
447+
for (let type of this.typesIDs) {
448+
this.$delete(this.results, type)
449+
}
447450
return
448451
}
449452

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)