Open Invito101 opened 1 month ago
I will be fixing this. Not a bug, its just a typo ig.
I will be fixing this. Not a bug, its just a typo ig.
I initially marked it as a bug instead of a typo because it's not just a simple spelling mistake, it causes an error that is quite complex to debug, especially for newbies like me. However, if it's not a significant issue, I will use the 'typo' label instead in the future.
Quick fix for this: Just wrap your <CommandEmpty>
and <CommandGroup>
with <CommandList>
Quick fix for this: Just wrap your
<CommandEmpty>
and<CommandGroup>
with<CommandList>
Yes, I just reported so that the documentation can be fixed.
I was banging my head for 3 days on this particular issue, tried several different things, and for a newbie, as @Invito101 said not easy to find out what is causing this issue until I decided to look at the issue log. was such a simple fix. I agree this needs to be updated in the document, otherwise people like me almost would have given up on combobox and used something else just because we couldnt get to this...
Describe the bug
There's an error in the documentation of Combobox ( https://ui.shadcn.com/docs/components/combobox ). The components after the CommandInput needs to wrapped around CommandList according to the Command docs ( https://ui.shadcn.com/docs/components/command ).
Affected component/components
Combobox
How to reproduce
Codesandbox/StackBlitz link
https://ui.shadcn.com/docs/components/combobox#combobox
Logs
No response
System Info
Before submitting