You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Listbox with multiple prop, without providing a value (eg. when using it in uncontrolled manner), it throws after clicking the trigger/button:
Cannot read properties of undefined (reading 'some')
The text was updated successfully, but these errors were encountered:
Hey! Thank you for your bug report!
Much appreciated! 🙏
We will make sure that it doesn't crash, however in multiple mode, you should always provide an array. If nothing is selected an empty array should be used.
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v1.7.4
What browser are you using?
Chrome & Safari
Reproduction URL
https://codesandbox.io/s/musing-cherry-y86t8u
Describe your issue
When using Listbox with
multiple
prop, without providing a value (eg. when using it in uncontrolled manner), it throws after clicking the trigger/button:The text was updated successfully, but these errors were encountered: