Skip to content

fix(frontend): keep top dropdown item selected on ArrowUp - #220

Merged
amorfinv merged 1 commit into
mainfrom
fix/dropdown-arrowup-selection
Oct 17, 2026
Merged

amorfinv merged 1 commit into
mainfrom
fix/dropdown-arrowup-selection

Conversation

@amorfinv

Copy link
Copy Markdown
Collaborator

Summary

  • In the shared Dropdown widget (console autocompletes, Create Aircraft type dropdown), pressing ArrowUp with nothing selected now selects the top item, mirroring ArrowDown.
  • Repeated ArrowUp on the top item keeps it selected instead of clearing the selection back to -1.
  • Adds happy-dom Vitest coverage for Dropdown keyboard navigation (Up/Down bounds, Enter, hidden state).

🤖 Generated with Claude Code

With no selection, ArrowUp now selects the top item (mirroring ArrowDown),
and repeated ArrowUp on the top item keeps it selected instead of dropping
back to "nothing selected". Adds keyboard-navigation tests for Dropdown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@amorfinv
amorfinv merged commit 4c2e201 into main Oct 17, 2026
2 checks passed
@amorfinv
amorfinv deleted the fix/dropdown-arrowup-selection branch October 17, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant