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