Skip to content

Listbox (select) bug. #1898

Discussion options

You must be logged in to vote

Hey! Thank you for your question!
Much appreciated! 🙏

It's a bit hard to debug without a reproduction repo, but I have a feeling that the by prop will help you out.

My guess is that your value on the Listbox looks similar to the value of the Listbox.Option but isn't the exact same reference.

I would recommend you to read this part of the documentation: https://headlessui.com/react/listbox#binding-objects-as-values

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ahmedalashhab
Comment options

Answer selected by ahmedalashhab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants