Skip to content

Commit 45f6393

Browse files
authored
Default theme is not work as expected
I'm trying changing max suggestions like the link https://vuepress.vuejs.org/default-theme-config/#search-box But it was not work. I fix this bug.
1 parent 702e947 commit 45f6393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vuepress/plugin-search/SearchBox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default {
6262
}
6363
6464
const { pages } = this.$site
65-
const max = SEARCH_MAX_SUGGESTIONS
65+
const max = this.$site.themeConfig.searchMaxSuggestions || SEARCH_MAX_SUGGESTIONS
6666
const localePath = this.$localePath
6767
const matches = item => (
6868
item.title

0 commit comments

Comments
 (0)