pacocoursey / cmdk

Fast, unstyled command menu React component.
https://cmdk.paco.me
MIT License
9.03k stars 258 forks source link

Command Items disabled under CommandList #236

Closed ezraanglo closed 3 months ago

ezraanglo commented 3 months ago

Hi! First I wanna thank you for this library! It's been a time saver for me ~

So I just upgraded to the latest version and I'm using shadcn/ui. I don't know if its just me but the command items are disabled after the update.

I can see the CommandList is now required on the new version. Maybe I'm missing some props to have them enabled? Really appreciate any help!

nenya1840 commented 3 months ago

+1

nenya1840 commented 3 months ago

in your project components/ui/command.tsx

can change from data-[disabled]:pointer-events-none data-[disabled]:opacity-50 to data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50

nenya1840 commented 3 months ago

can check here https://github.com/shadcn-ui/ui/issues/2944

pacocoursey commented 3 months ago

Yep, thanks. I'll add a note to the release notes because this is technically a breaking (CSS) change.