Closed dinogomez closed 6 months ago
Found a fix
Removing data-[disabled]:pointer-events-none data-[disabled]:opacity-50
on shadcn's CommandItem
seems to fix it.
//components/ui/command.tsx
const CommandItem = React.forwardRef<
React.ElementRef<typeof CommandPrimitive.Item>,
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>
>(({ className, ...props }, ref) => (
<CommandPrimitive.Item
ref={ref}
className={cn(
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5
text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground
data-[disabled]:pointer-events-none data-[disabled]:opacity-50", <--remove this two classnames
className
)}
{...props}
/>
));
Tried using the autocomplete, this is from the props section.