Combobox not working as expected. #3268
-
Questions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Could you please share your code so we can debug the As for your first question, |
Beta Was this translation helpful? Give feedback.
-
Closing due to inactivity |
Beta Was this translation helpful? Give feedback.
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 thelabelText
prop (see Combobox props table). The value type options for that component arestring
andNonNullable<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!