-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: search bar clear and individual index for docs #251
Conversation
Revathyvenugopal162
commented
May 25, 2023
•
edited
Loading
edited
- added the scroll bar
- highlight with color with all suggestions
- added the version index
- clear the search bar when the drop down index changes.
- Add more suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting some last changes. Style looks good! Thanks, @Revathyvenugopal162.
Co-authored-by: Jorge Martínez <[email protected]>
// Listen for changes in the dropdown selector and update the index uid and suggestion accordingly | ||
document | ||
.getElementById("indexUidSelector") | ||
.addEventListener("change", function () { | ||
theSearchBar.indexUid = this.value; | ||
theSearchBar.inputSelector = "#search-bar-input"; | ||
theSearchBar.suggestionIndexUid = this.value; | ||
theSearchBar.autocomplete.autocomplete.setVal(""); | ||
}); | ||
|
||
// Listen for changes in the search bar input and update the suggestion accordingly | ||
document | ||
.getElementById("search-bar-input") | ||
.addEventListener("change", function () { | ||
theSearchBar.suggestionIndexUid = | ||
document.getElementById("indexUidSelector").value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should definitely help us to improve the suggestion provided to users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for handling that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work, @Revathyvenugopal162!