feat: allow middle clicks to open search suggestions in new tab

This commit is contained in:
Bnyro
2023-09-24 21:12:33 +02:00
parent 3cfae88dbc
commit 6158a1669a
2 changed files with 12 additions and 15 deletions

View File

@@ -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;