Skip to content

Commit ade328f

Browse files
vrjuliaofgiraud
authored and
fgiraud
committed
fix: search box max suggestions not working as expected (#1728)
fix: search box max suggestions fix #1728
1 parent 543fd6c commit ade328f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default {
6767
}
6868
6969
const { pages } = this.$site
70-
const max = SEARCH_MAX_SUGGESTIONS
70+
const max = this.$site.themeConfig.searchMaxSuggestions || SEARCH_MAX_SUGGESTIONS
7171
const localePath = this.$localePath
7272
const matches = item => (
7373
item.title

0 commit comments

Comments
 (0)