Skip to content

DataTableFacetedFilter is disabled #2976

Answered by KRIMOD
nareshbhatia asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there, I too encountered the same issue, and after some investigating I think I found the culprit.

I don't think it have anything to do with the cmdk, but with the Command.tsx file provided. More specifically on the CommandItem component. Following what @sadmann7 have done in his implementation of shadncn-table, the issue seem to be in the classname ; changing from :

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 …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nareshbhatia
Comment options

Answer selected by nareshbhatia
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants