We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db35dae commit 0ef441dCopy full SHA for 0ef441d
src/static/js/client/sidebar-search.js
@@ -349,7 +349,7 @@ export function addPageListeners() {
349
info.searchInput.addEventListener('keydown', domEvent => {
350
if (domEvent.key === 'ArrowDown') {
351
const elem = info.results.firstChild;
352
- if (elem?.classList?.contains?.('wiki-search-result')) {
+ if (elem?.classList.contains('wiki-search-result')) {
353
domEvent.preventDefault();
354
elem.focus({focusVisible: true});
355
}
0 commit comments