diff options
Diffstat (limited to 'src/static/js')
-rw-r--r-- | src/static/js/client/sidebar-search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/client/sidebar-search.js b/src/static/js/client/sidebar-search.js index 48bc8d08..2d346b41 100644 --- a/src/static/js/client/sidebar-search.js +++ b/src/static/js/client/sidebar-search.js @@ -349,7 +349,7 @@ export function addPageListeners() { info.searchInput.addEventListener('keydown', domEvent => { if (domEvent.key === 'ArrowDown') { const elem = info.results.firstChild; - if (elem?.classList?.contains?.('wiki-search-result')) { + if (elem?.classList.contains('wiki-search-result')) { domEvent.preventDefault(); elem.focus({focusVisible: true}); } |