fix(autocomplete): auto select top result
Use autocomplete.js's autoselect=true option to select the top suggestion on <ENTER> even if you don't move the cursor. Fix #81
This commit is contained in:
parent
187db27ce7
commit
473824a574
1 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,8 @@ class DocSearch {
|
||||||
},
|
},
|
||||||
autocompleteOptions = {
|
autocompleteOptions = {
|
||||||
debug: false,
|
debug: false,
|
||||||
hint: false
|
hint: false,
|
||||||
|
autoselect: true
|
||||||
}
|
}
|
||||||
}) {
|
}) {
|
||||||
DocSearch.checkArguments({apiKey, indexName, inputSelector, algoliaOptions, autocompleteOptions});
|
DocSearch.checkArguments({apiKey, indexName, inputSelector, algoliaOptions, autocompleteOptions});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue