diff --git a/lib/default-theme/SearchBox.vue b/lib/default-theme/SearchBox.vue index 395bdce4f9..2da178f985 100644 --- a/lib/default-theme/SearchBox.vue +++ b/lib/default-theme/SearchBox.vue @@ -118,6 +118,9 @@ export default { } }, go (i) { + if (!this.showSuggestions) { + return + } this.$router.push(this.suggestions[i].path) this.query = '' this.focusIndex = 0