ComboBox input value displayed incorrectly when using onSelectionChange with React Hook Form #5925
Unanswered
deltasierra96
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The first thing I would try is to follow the dynamic collection API instead of using Array.map(): <ComboBox items={vendors}>
{item => <ComboBox.Item>{item.title}</ComboBox.Item>}
</ComboBox > Beyond that, it is hard to tell at a glance since ComboBox isn't a RAC Combobox, so i would need to see the implementation of that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I apologise for what may seem like dumb questions lately ... my post history doesn't post a very good picture of my skills.
I'm utilising a component as part of a React Hook Form submission that submits an
Id
relating to a database entry.The data itself that's submitted is correct, and that's great. However when I select an option from the
<ListBox/>
, instead of displaying the correct title/child of the<ListBoxItem/>
, it updates to show theId
.Beta Was this translation helpful? Give feedback.
All reactions