fix: Tab selects highlighted dropdown option before advancing focus
When the dropdown is open with a highlighted option, pressing Tab now selects that option and then moves focus to the next field naturally. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -78,9 +78,8 @@ export function FeedbackPage() {
|
|||||||
triggerRef.current?.focus()
|
triggerRef.current?.focus()
|
||||||
break
|
break
|
||||||
case 'Tab':
|
case 'Tab':
|
||||||
if (typeDropdownOpen) {
|
if (typeDropdownOpen && highlightedIndex >= 0) {
|
||||||
setTypeDropdownOpen(false)
|
handleSelectType(FEEDBACK_TYPES[highlightedIndex].value)
|
||||||
setHighlightedIndex(-1)
|
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user