Open ImamJanjua opened 1 month ago
@ImamJanjua <CommandList />
needs to be present always, not conditionally as you have shown here. I solution I used was using CSS to make it hidden vs. removing it from the DOM.
@hoop71 if using Command inside a Popover
, Dialog
or similar, you get that error. What would be a way to make that work?
@darenmalfait Can you provide a little more information there? I'm able to use them inside those components successfully. Here is a working example: https://ui.shadcn.com/docs/components/combobox
To be fair, many of the examples on the shadcn page don't work because they don't use <CommandList>
at all - and that's when this error occurs.
@darenmalfait if you wrap all the <CommandItem>
tags in a <CommandList>
it should work.
@clinically-au Great feedback, thanks!
Hi guys, I correctly updated to v1 so changed the classes and added
CommandList
andCommandEmpty
to the component. Here is a implementation of a autocomplete but on select getting the error.Probably just a small thing but can't catch the error. Help would be 🔥🔥
can be used like like âž”