Skip to content

Combobox not working as expected. #3268

Answered by nkrantz
sumitbhanwala asked this question in General
Discussion options

You must be logged in to vote

Hi @sumitbhanwala

Could you please share your code so we can debug the optionTemplate issue?

As for your first question, labelText is a required prop in order to ensure that the label never gets forgotten when using a Combobox, for accessibility reasons. We do, however, allow you to pass React components as values to the labelText prop (see Combobox props table). The value type options for that component are string and NonNullable<React.ReactNode>. Let me know if you'd like more of an explanation of how to pass React components to that property or if you have more questions. Thanks!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by serifluous
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
Labels
None yet
3 participants