File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,11 @@ function handleKeydown(event: KeyboardEvent) {
131131 :leave-to-class =" prefersReducedMotion ? '' : 'opacity-0'"
132132 >
133133 <ul
134- v-if =" isOpen"
134+ v-show =" isOpen"
135135 :id =" listboxId"
136136 ref =" listRef"
137137 role =" listbox"
138+ :aria-hidden =" !isOpen"
138139 :aria-activedescendant ="
139140 highlightedIndex >= 0
140141 ? `${listboxId}-${packageManagers[highlightedIndex]?.id}`
Original file line number Diff line number Diff line change @@ -175,10 +175,11 @@ function handleKeydown(event: KeyboardEvent) {
175175 :leave-to-class =" prefersReducedMotion ? '' : 'opacity-0'"
176176 >
177177 <div
178- v-if =" isOpen"
178+ v-show =" isOpen"
179179 :id =" listboxId"
180180 ref =" listRef"
181181 role =" listbox"
182+ :aria-hidden =" !isOpen"
182183 :aria-activedescendant ="
183184 highlightedIndex >= 0 && toc[highlightedIndex]?.id
184185 ? `${listboxId}-${toc[highlightedIndex]?.id}`
You can’t perform that action at this time.
0 commit comments