diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 6116a858..df3fdaff 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -183,7 +183,9 @@ export default { this.suggestionsVisible = true; }, onInputBlur() { - this.suggestionsVisible = false; + // the search suggestions will be hidden after some seconds + // otherwise anchor links won't work! + setTimeout(() => (this.suggestionsVisible = false), 200); }, onSearchTextChange(searchText) { this.searchText = searchText; diff --git a/src/components/SearchSuggestions.vue b/src/components/SearchSuggestions.vue index a2cb1f5a..fa3d2e54 100644 --- a/src/components/SearchSuggestions.vue +++ b/src/components/SearchSuggestions.vue @@ -1,15 +1,14 @@ @@ -71,10 +70,6 @@ export default { }, onClick(i) { this.setSelected(i); - this.$router.push({ - name: "SearchResults", - query: { search_query: this.searchSuggestions[i] }, - }); }, setSelected(val) { this.selected = val; @@ -102,6 +97,6 @@ export default { } .suggestion { - @apply p-1; + @apply block w-full p-1; }