Skip to content

Conversation

kradical
Copy link
Contributor

@kradical kradical commented Jul 17, 2024

Fixes: #3391

When multiple is specified we expect TValue to already be an array, so lets just ensure its an array and use it as the type for virtual.options. Similarly the disabled callback gets passed a TValue, but when multiple is true it is passed something of type element of TValue.

Behaviour in javascript lines up with this fine, just a type level fix afaik.

When multiple is specified we expect TValue to already be an array, so lets just
ensure its an array and use it as the type for virtual.options. Similarly the
disabled callback gets passed a TValue, but when multiple is true it is passed
something of type element of TValue.

Behaviour in javascript lines up with this fine, just a type level fix afaik.
Copy link

vercel bot commented Jul 17, 2024

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

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2024 9:11pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2024 9:11pm

@thecrypticace
Copy link
Contributor

Ah whoops — thanks for fixing!

This will be available in our next release but you can try it before then via our insiders build (should be published in the next few minutes if not already):

npm install @headlessui/react@insiders

@kradical
Copy link
Contributor Author

no problem, thanks for the quick turnaround! awesome, ty

@mralexfed007
Copy link

Hello, do you know when these changes will be released ?

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.

Combobox virtual types don't work when multiple is true
3 participants