Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when using multiple mode without value prop (uncontrolled) for Listbox and Combobox components #2058

Merged
merged 2 commits into from Dec 2, 2022

Conversation

RobinMalfait
Copy link
Collaborator

This PR fixes a crash where using multiple mode in the Listbox or Combobox component resulted
in a crash. Normally even if nothing is selected an empty array should be used for the value: [].

However, these components can be used as uncontrolled components where the value is not passed at
all. This PR fixes that.

Fixes: #2057

In case nothing or `undefined` was passed.
@vercel
Copy link

vercel bot commented Dec 2, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
headlessui-react ✅ Ready (Inspect) Visit Preview Dec 2, 2022 at 2:15PM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview Dec 2, 2022 at 2:15PM (UTC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Listbox] Listbox throws an error when using multi-select select without providing a value
1 participant