Skip to content

Commit

Permalink
fix(mobile): command wrong data-disabled selector turning unclickable
Browse files Browse the repository at this point in the history
  • Loading branch information
daltonmenezes committed Aug 8, 2024
1 parent 7abba80 commit 47c083e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/ui/command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ const Command = React.forwardRef<
))
Command.displayName = CommandPrimitive.displayName

interface CommandDialogProps extends DialogProps {}
// eslint-disable-next-line prettier/prettier
interface CommandDialogProps extends DialogProps { }

const CommandDialog = ({ children, ...props }: CommandDialogProps) => {
return (
Expand Down Expand Up @@ -119,7 +120,7 @@ const CommandItem = React.forwardRef<
<CommandPrimitive.Item
ref={ref}
className={cn(
'aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
'aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50',
className
)}
{...props}
Expand Down

0 comments on commit 47c083e

Please sign in to comment.