Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1669684

Browse files
committedSep 14, 2024
cleaner optional chaining
1 parent b8148a6 commit 1669684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/static/js/client/sidebar-search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export function addPageListeners() {
345345
info.searchInput.addEventListener('keydown', domEvent => {
346346
if (domEvent.key === 'ArrowDown') {
347347
const elem = info.results.firstChild;
348-
if (elem?.classList?.contains?.('wiki-search-result')) {
348+
if (elem?.classList.contains('wiki-search-result')) {
349349
domEvent.preventDefault();
350350
elem.focus({focusVisible: true});
351351
}

0 commit comments

Comments
 (0)
Please sign in to comment.