From 6099ad742c6d1143396608447ca79793caa44292 Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Wed, 7 Apr 2021 16:51:49 +0530 Subject: [PATCH] Fix race condition. It takes time for the emit function to actually fire. --- src/components/SearchSuggestions.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SearchSuggestions.vue b/src/components/SearchSuggestions.vue index b4ebf9f5..3de42746 100644 --- a/src/components/SearchSuggestions.vue +++ b/src/components/SearchSuggestions.vue @@ -64,7 +64,7 @@ export default { this.setSelected(i); this.$router.push({ name: "SearchResults", - query: { search_query: this.searchText } + query: { search_query: this.searchSuggestions[i] } }); }, setSelected(val) {