ArkUI: Add more documentation on Combobox #2954
-
I was trying the combobox and somehow the callback that provides back the selected value was returning only the first item no matter which item you click. After like 1 hour of debuggning I found out that the Collection class we create, we should implement the value callback and provide the ID of the Item. It works fine if you provide a collection of strings or a collection that has a Value property but if that is not the case, the value callback of the Collection must be implemented. Please add on the docs an explaination that this must be implemented. |
Beta Was this translation helpful? Give feedback.
Answered by
cschroeter
Oct 6, 2024
Replies: 1 comment 2 replies
Answer selected by
xeinebiu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://ark-ui.com/react/docs/guides/collection