Skip to content

Combobox display value #33451

Answered by behowell
jimjacob29 asked this question in Q&A
Discussion options

You must be logged in to vote

HI @jimjacob29, I've converted your issue to a discussion, since this is a question about usage of Combobox.

The display value can be controlled using the value prop. You can set it even if you're also setting selectedOptions. See this example: https://react.fluentui.dev/?path=/docs/components-combobox--docs#controlled (the second combobox in that example).

The onInput prop is forwarded directly to the input element. It should work just like a normal React onInput event. The example linked above also shows how to use onInput.

If you still have questions, please include a link to a Stackblitz with the repro, rather than pasting the code directly in the question. You can get started with a …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by behowell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #33427 on December 11, 2024 19:11.