How to make Select work with custom ListBox? #6705
Replies: 1 comment 1 reply
-
I think this will be easier after our next release when we make it easier to build your own Collections. I'm not sure what exactly is missing from here, because it looks pretty different to our implementation, but you could start by comparing to our implementation of ListBox. You could (again, more easily after our coming release) copy our ListBox implementation entirely and change the parts you need. My best guess is a mismatch between collections. Our hooks documentation still uses an older version of collections, while RAC is on a newer one and they wont work together. We'll be updating our hooks documentation in the future to show how to use the new collections. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to swap ListBox and ListBoxItem with a custom component that renders to <ul> and <li>.
While the list works fine outside Select, I cannot make them work together.
What am I missing?
https://codesandbox.io/p/devbox/cool-rgb-4yzz4r?file=%2Fsrc%2FApp.jsx
Beta Was this translation helpful? Give feedback.
All reactions