We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d51b574 commit 63d5d59Copy full SHA for 63d5d59
app/components/Compare/PackageSelector.vue
@@ -105,14 +105,20 @@ function handleKeydown(e: KeyboardEvent) {
105
case 'ArrowDown':
106
e.preventDefault()
107
if (count === 0) return
108
- highlightedIndex.value = Math.min(highlightedIndex.value + 1, count - 1)
+ if (highlightedIndex.value < count - 1) {
109
+ highlightedIndex.value++
110
+ } else {
111
+ highlightedIndex.value = 0
112
+ }
113
break
114
115
case 'ArrowUp':
116
117
118
if (highlightedIndex.value > 0) {
119
highlightedIndex.value--
120
121
+ highlightedIndex.value = count - 1
122
}
123
124
0 commit comments