Skip to content

Commit

Permalink
fix: search box throw a error with no suggestions (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liyuk authored and ulivz committed May 28, 2018
1 parent 52fd040 commit 1186d6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/default-theme/SearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ export default {
}
},
go (i) {
if (!this.showSuggestions) {
return
}
this.$router.push(this.suggestions[i].path)
this.query = ''
this.focusIndex = 0
Expand Down

0 comments on commit 1186d6a

Please sign in to comment.