fix: stop search loading when exiting
This commit is contained in:
parent
2013ee4fa2
commit
144950ea70
@ -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…
Reference in New Issue
Block a user