Skip to content

Commit 0006681

Browse files
committed
fix error
1 parent fabad0f commit 0006681

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/components/Package/ManagerSelect.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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}`

app/components/ReadmeTocDropdown.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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}`

0 commit comments

Comments
 (0)