[PR #6442] fix autocomplete, categoryAutocomplete: handle ArrowDown from null hi… #6527

Closed
opened 2026-02-28 21:29:35 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6442

State: closed
Merged: No


fixes #6410
[Bug]: Down arrow key no longer selects category #6410

• Fixes the behavior of the category dropdown when pressing ArrowDown from a null highlightedIndex.
• Added a new prop skipSplit to skip the "Split Transaction" option.
• Includes a demo video showing the functionality in action.

Problem / Motivation:
Before this fix, pressing ArrowDown in the category autocomplete could fail when no item was initially highlighted, and the "Split Transaction" option was selectable even when it shouldn’t be.

Solution:
• Added handling for ArrowDown from a null highlightedIndex to correctly highlight the first selectable item.
• Added a new prop skipSplit to automatically skip the "Split Transaction" option in the dropdown.

Demo:
• See attached video for the updated behavior.

Impact:
• Users can navigate the dropdown with ArrowDown reliably.
• "Split Transaction" is skipped when necessary, avoiding accidental selection.

https://github.com/user-attachments/assets/f46fc6b7-7bbd-498c-b4ba-21869d467887

Summary by CodeRabbit

  • New Features

    • Added a configurable option to control skipping of special "split" suggestions during initial keyboard navigation.
  • Bug Fixes

    • Improved arrow-key behavior in autocomplete so the first highlighted item is more predictable when special items are present.
    • Made category autocomplete consistently avoid auto-highlighting split items and explicitly set initial highlight behavior.

✏️ Tip: You can customize this high-level summary in your review settings.

**Original Pull Request:** https://github.com/actualbudget/actual/pull/6442 **State:** closed **Merged:** No --- fixes #6410 [Bug]: Down arrow key no longer selects category #6410 • Fixes the behavior of the category dropdown when pressing ArrowDown from a null highlightedIndex. • Added a new prop skipSplit to skip the "Split Transaction" option. • Includes a demo video showing the functionality in action. Problem / Motivation: Before this fix, pressing ArrowDown in the category autocomplete could fail when no item was initially highlighted, and the "Split Transaction" option was selectable even when it shouldn’t be. Solution: • Added handling for ArrowDown from a null highlightedIndex to correctly highlight the first selectable item. • Added a new prop skipSplit to automatically skip the "Split Transaction" option in the dropdown. Demo: • See attached video for the updated behavior. Impact: • Users can navigate the dropdown with ArrowDown reliably. • "Split Transaction" is skipped when necessary, avoiding accidental selection. https://github.com/user-attachments/assets/f46fc6b7-7bbd-498c-b4ba-21869d467887 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a configurable option to control skipping of special "split" suggestions during initial keyboard navigation. * **Bug Fixes** * Improved arrow-key behavior in autocomplete so the first highlighted item is more predictable when special items are present. * Made category autocomplete consistently avoid auto-highlighting split items and explicitly set initial highlight behavior. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
GiteaMirror added the pull-request label 2026-02-28 21:29:35 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6527