pacocoursey / cmdk

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

Ussing shadcn, CommandItem classes causes the item to be disabled, cmdk v.1.0.0 #285

Closed jhomudev closed 4 months ago

jhomudev commented 4 months ago

When adding the command component to my project, and using it, the styles of the list items occupy "disabled" styles.

image

Which was fixed by setting them true:

image

I also saw that when using this component inside the shadcn sheet component, it inherits the style of "pointer-events: none;" from body tag

gastbob40 commented 4 months ago

Hey,

I also have this issue

jhomudev commented 4 months ago

The "pointer-events: none" style using the shadcn sheet component was solved in my case by deleting the package.lock.json file and the node modules folder and running npm install again

joseglego commented 3 months ago

Hey, somebody already reported this issue: https://github.com/pacocoursey/cmdk/issues/245

They came to 2 different solutions (this is related to the cmdk 0.2.1 to 1.0.0): https://github.com/pacocoursey/cmdk/issues/245#issuecomment-2031580824.