Skip to content

Commit

Permalink
Update src/components/input.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Radu-Cristian Popa <[email protected]>
  • Loading branch information
ionutanin and raducristianpopa authored Jan 8, 2024
1 parent 8b268ff commit 22ff46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(function Input(
<input
ref={ref}
type={type}
className={cn(inputVariants({ loading, hasIcon: !!icon, disabled, error }), className)}
className={cn(inputVariants({ loading, disabled }), icon && 'pl-12', error && 'border-error', className)}
disabled={disabled ?? loading ?? false}
aria-disabled={disabled ?? loading ?? false}
{...props}
Expand Down

0 comments on commit 22ff46c

Please sign in to comment.