Skip to content

First up/down arrow key press not switching items on static Combobox options #2961

Answered by adamwathan
oliwheeler asked this question in Help
Discussion options

You must be logged in to vote

Hey! So the important thing to understand is that the static prop is just for you to take control of whether the element is visible or not, but it doesn't influence the actual open state of the comobobox. Even though you can see the panel, the combobox is technically closed from an internal state perspective. What's happening when you hit up/down the first time is that the combobox is now opening, and the second up/down actually changes the selected item.

The static prop exists for integrating the component with things like Framer Motion where you need to let Framer Motion handle whether something is shown or not using a component like AnimatePresence — it's not meant for permanently show…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by oliwheeler
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2960 on February 02, 2024 11:21.