Skip to content

Fix keyboard options traversal to always follow visual order#140

Open
RisPNG wants to merge 1 commit intomaxmarcon:mainfrom
RisPNG:fix-keyboard-option-traversal
Open

Fix keyboard options traversal to always follow visual order#140
RisPNG wants to merge 1 commit intomaxmarcon:mainfrom
RisPNG:fix-keyboard-option-traversal

Conversation

@RisPNG
Copy link
Copy Markdown

@RisPNG RisPNG commented Feb 20, 2026

Hi, me again, I use this component a lot in my production system, so I've encountered quirks, bugs, and things that can be improved. Since I have a bit of free time to contribute today due to Chinese New Years, hence the multiple issue reports and PRs. However, I do I believe they are all valid to be considered.

Issue refer to #139.

In the current implementation, the keyboard navigation always follows data indices (0, 1, 2, 3...) even if the visual order is different since they can be modified through the internal CSS options.

To fix this, I added a visualOrder variable in the js that fetches the visual order on the client side to be used by keydown and selectable functions.

Here is the video after the fix:

Screencast.From.2026-02-20.19-20-12.mp4

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