Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete: only visible items are reachable via tab when autocomplete is scrollable #2664

Open
Robin-w151 opened this issue May 16, 2024 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@Robin-w151
Copy link

Current Behavior

If there are enough items available that the autocomplete is scrollable, only the visible items are reachable via tabbing.

Expected Behavior

I would expect that all items are keyboard reachable.

Steps To Reproduce

  1. Goto https://www.skeleton.dev/components/autocomplete
  2. Click into the first autocomplete example and try to reach 'Pineapple' item via tabbing
  3. After pressing tab when 'Neapolitan' is selected, the focus jumps back to the input

Link to Reproduction / Stackblitz

https://www.skeleton.dev/components/autocomplete

More Information

Skeleton version: 2.10.0

@Robin-w151 Robin-w151 added the bug Something isn't working label May 16, 2024
@endigo9740
Copy link
Contributor

endigo9740 commented May 16, 2024

@Robin-w151 I'm struggling to replicate this. Can you share more details about the environment you're testing this in - OS/device/browser/etc. Anything relevant.

Here's what I see when testing in Chrome on macOS:

Kapture 2024-05-16 at 16 18 18

@Robin-w151
Copy link
Author

Robin-w151 commented May 17, 2024

@endigo9740 Thanks for your reply.

Apparently, this behavior only occurs on Linux. When testing this on MacOS (14.5), everything works.

OS: Kubuntu 23.10 (Plasma version: 5.27.8)
Browsers: Firefox and Chrome

NOTE: on Edge (chromium) it seems to work correctly

autocomplete_linux_firefox.webm
autocomplete_linux_chrome.webm

@endigo9740 endigo9740 added this to the v2.0 milestone May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants