Skip to content

Combobox not able to clear value when used as controlled component #644

Answered by SiTaggart
jhdielman asked this question in Q&A
Discussion options

You must be logged in to vote

OK, I have a potential fix for this. The only way to successfully reset both the input value and selected item is for the consumer to use the hook that we use underneath and use the set methods selectItem or reset.

By doing so we'll need to provide a way to pass state to the combobox, much like we do else where in the system like in tabs, for example.

I'll try and push a fix up this week

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@corinne-nagel
Comment options

@SiTaggart
Comment options

@jhdielman
Comment options

Comment options

You must be logged in to vote
3 replies
@jhdielman
Comment options

@SiTaggart
Comment options

@SiTaggart
Comment options

Answer selected by SiTaggart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants