Skip to content

Listbox: mouse steals focus on scrolling with keyboard #3739

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

Open
HanLap opened this issue May 27, 2025 · 0 comments
Open

Listbox: mouse steals focus on scrolling with keyboard #3739

HanLap opened this issue May 27, 2025 · 0 comments

Comments

@HanLap
Copy link

HanLap commented May 27, 2025

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v2.2.4

What browser are you using?

Chromium, Firefox

Reproduction URL

https://codesandbox.io/p/devbox/lucid-farrell-wzdwrk

Describe your issue

When moving through the Listbox contents using up/down keybinds, the mouse will steal focus if it is hovering over a ListboxOption. This seems to happen whenever the up/down focus change causes scrolling on the container.

Screencast.from.2025-05-27.10-58-19.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

No branches or pull requests

1 participant