Commit 144950ea authored by NGPixel's avatar NGPixel

fix: stop search loading when exiting

parent 2013ee4f
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment