Replies: 2 comments 3 replies
-
Hey! This is not a bug, but it is implemented this way deliberately. It allows you to hold down arrow up or arrow down and it will stop at the end or at the top respectively. We have a version where it will loop around but only if you are not holding down the arrow key. If you want to jump from the last item to the top you can use the |
Beta Was this translation helpful? Give feedback.
3 replies
-
Is there any workaround for this behaviour? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v1.7.18
What browser are you using?
Firefox
Reproduction URL
https://codesandbox.io/p/sandbox/staging-worker-hdkwqp
Describe your issue
I love your work! Thank you for tailwind and headlessui.
When the last item in a combobox is active, and I press
down
, I expect the first item in the combobox to be selected - same with the first item and pressingup
. I expect the items to loop.In the provided sandbox you can see the issue. You can also see it in your documentation here: https://headlessui.com/react/combobox.
Beta Was this translation helpful? Give feedback.
All reactions