Replies: 2 comments 2 replies
-
Looks like for Combobox, we pass it along on the ListBox context Which is this value in particular I'm not sure why we don't expose that in the props on the ListBox component itself, I'll see if anyone else remembers or if it is a bug. In the meantime, you should be able to model yourself after Combobox for this. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Dug into the listbox tests and saw that it requires a keydown and a keyup. react-spectrum/packages/react-aria-components/test/ListBox.test.js Lines 57 to 58 in 3555336
Works! |
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
-
I'm using the listbox component to implement an autocomplete menu, something like Notion's.
The listbox is embedded and should be controlled by the text editor. So whenever arrow keys are pressed down, I want to forward that to the listbox and change the selected keys. Is there a way to do this properly?
I tried adding a ref to the listbox and re-dispatching the editor event, but it doesn't seem to affect the listbox even though
onKeyDown
withinuseSelectableCollection
is triggered. Any thoughts?Beta Was this translation helpful? Give feedback.
All reactions