Browse Source

fix: stop search loading when exiting

pull/1980/head
NGPixel 5 years ago
parent
commit
144950ea70
1 changed files with 2 additions and 1 deletions
  1. 3
      client/components/common/search-results.vue

3
client/components/common/search-results.vue

@ -100,9 +100,10 @@ export default {
watch: {
search(newValue, oldValue) {
this.cursor = 0
if (newValue && newValue.length < 2) {
if (!newValue || (newValue && newValue.length < 2)) {
this.response.results = []
this.response.suggestions = []
this.searchIsLoading = false
} else {
this.searchIsLoading = true
}

Loading…
Cancel
Save