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: incorrect code snippet for combobox-demo #2992

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MarufZak
Copy link

@MarufZak MarufZak commented Mar 12, 2024

Resolves #2986

When copy pasting the code snippet provided in combobox demo, following error occurs:

Screenshot 2024-03-12 at 12 45 09

Usage as in official docs of cmdk (Using List component as a wrapper for Empty and Group) fixes the issue
Screenshot 2024-03-12 at 12 46 40

Copy link

vercel bot commented Mar 12, 2024

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

A member of the Team first needs to authorize it.

@MarufZak MarufZak changed the title fix: incorrect code snippet for combobox-demo, issue #2986 fix: incorrect code snippet for combobox-demo Mar 12, 2024
@jhnguyen521
Copy link
Contributor

See #2944, #2945

@SokratisVidros
Copy link

Just confirmed that the fix is correct 👏

@nilsbunger
Copy link

This fix looks correct. I hit this issue today, the demos on the website are still wrong.

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.

[Bug]: Default Combobox is currently broken.
4 participants