File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -657,7 +657,8 @@ summary .group-name {
657
657
border-bottom : 1px solid var (--dim-color );
658
658
}
659
659
660
- .wiki-search-result : hover ::before , .wiki-search-result : focus ::before {
660
+ .wiki-search-result : hover ::before ,
661
+ .wiki-search-result : focus ::before {
661
662
display : block;
662
663
background : var (--light-ghost-color );
663
664
}
Original file line number Diff line number Diff line change @@ -67,15 +67,15 @@ export const info = {
67
67
tidiedSidebar : null ,
68
68
collapsedDetailsForTidiness : null ,
69
69
70
+ currentValue : null ,
71
+
70
72
workerStatus : null ,
71
73
searchStage : null ,
72
74
73
75
stoppedTypingTimeout : null ,
74
76
stoppedScrollingTimeout : null ,
75
77
76
78
indexDownloadStatuses : Object . create ( null ) ,
77
-
78
- currentValue : null ,
79
79
} ,
80
80
81
81
session : {
@@ -344,8 +344,8 @@ export function addPageListeners() {
344
344
345
345
info . searchInput . addEventListener ( 'keydown' , domEvent => {
346
346
if ( domEvent . key === 'ArrowDown' ) {
347
- const elem = info . results ? .firstChild ;
348
- if ( elem && ! elem . classList . contains ( 'wiki-search-no-results ' ) ) {
347
+ const elem = info . results . firstChild ;
348
+ if ( elem ? .classList ? .contains ?. ( 'wiki-search-result ' ) ) {
349
349
domEvent . preventDefault ( ) ;
350
350
elem . focus ( { focusVisible : true } ) ;
351
351
}
You can’t perform that action at this time.
0 commit comments