From e7f9ff5a305e049ca7204995e9377c32162da889 Mon Sep 17 00:00:00 2001 From: leo60228 Date: Sat, 14 Sep 2024 18:04:18 -0400 Subject: address review 3 --- src/static/js/client/sidebar-search.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/static/js') diff --git a/src/static/js/client/sidebar-search.js b/src/static/js/client/sidebar-search.js index f46ce8e8..48bc8d08 100644 --- a/src/static/js/client/sidebar-search.js +++ b/src/static/js/client/sidebar-search.js @@ -69,6 +69,8 @@ export const info = { tidiedSidebar: null, collapsedDetailsForTidiness: null, + currentValue: null, + workerStatus: null, searchStage: null, @@ -76,8 +78,6 @@ export const info = { stoppedScrollingTimeout: null, indexDownloadStatuses: Object.create(null), - - currentValue: null, }, session: { @@ -348,8 +348,8 @@ export function addPageListeners() { info.searchInput.addEventListener('keydown', domEvent => { if (domEvent.key === 'ArrowDown') { - const elem = info.results?.firstChild; - if (elem && !elem.classList.contains('wiki-search-no-results')) { + const elem = info.results.firstChild; + if (elem?.classList?.contains?.('wiki-search-result')) { domEvent.preventDefault(); elem.focus({focusVisible: true}); } -- cgit 1.3.0-6-gf8a5