Skip to content

Commit

Permalink
refactor: select 컴포넌트 클릭 이벤트 조건 수정 (#ATR-603)
Browse files Browse the repository at this point in the history
  • Loading branch information
LC-02s committed Aug 28, 2024
1 parent b96860e commit c515400
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function Select<T extends string>(
if (e.key === 'ArrowUp' && idx > 0) {
btnEls?.[idx - 1]?.focus()
}
if (e.key === 'ArrowDown' && idx < btnEls.length) {
if (e.key === 'ArrowDown' && idx < btnEls.length - 1) {
btnEls?.[idx + 1]?.focus()
}
})
Expand Down

0 comments on commit c515400

Please sign in to comment.