We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa2397e commit e79354aCopy full SHA for e79354a
src/js/vendor/docsearch.bundle.js
@@ -15,7 +15,11 @@
15
autocompleteOptions: { hint: false, keyboardShortcuts: ['s'] },
16
algoliaOptions: { hitsPerPage: parseInt(config.maxResults) || 5 },
17
}).autocomplete
18
+ var autocomplete = search.autocomplete
19
+ search.on('autocomplete:updated', function () {
20
+ this.scrollTop = 0
21
+ }.bind(autocomplete.getWrapper().firstChild))
22
search.on('autocomplete:closed', function () {
- search.autocomplete.setVal()
- })
23
+ this.setVal()
24
+ }.bind(autocomplete))
25
})()
0 commit comments