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

Update combobox-demo.tsx for cmdk v1.0.0 #3872

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alexheckmann
Copy link

since cmdk v1.0.0, CommandEmpty and CommandGroup have to be wrapped in CommandList, otherwise it throws the following error as described in Issue #2980:

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))

To give people a working solution, here is an updated example of the combobox component that implements the compatibility fix.

since cmdk v1.0.0, CommandEmpty and CommandGroup have to be wrapped in CommandList, otherwise it throws the following error:

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
Copy link

vercel bot commented May 30, 2024

@alexheckmann is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@Prabhuomkar9
Copy link

was looking for this issue before few days, finally solved

@fcpauldiaz
Copy link

any updates on this?

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.

5 participants