We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0633e5 commit 31abbd7Copy full SHA for 31abbd7
1 file changed
src/lib/DocSearch.js
@@ -58,7 +58,7 @@ class DocSearch {
58
footer: templates.footer
59
}
60
}]);
61
- this.autocomplete.on('autocomplete:selected', this.handleSelected);
+ this.autocomplete.on('autocomplete:selected', this.handleSelected.bind(null, this.autocomplete.autocomplete));
62
63
64
/**
@@ -161,8 +161,8 @@ class DocSearch {
161
};
162
163
164
- handleSelected(event, suggestion) {
165
- this.autocomplete.autocomplete.setVal('');
+ handleSelected(input, event, suggestion) {
+ input.setVal('');
166
window.location.href = suggestion.url;
167
168
0 commit comments