From dadefdee77aa5c2b3c3f8e123444e5b971474818 Mon Sep 17 00:00:00 2001 From: ZHLH Date: Thu, 4 Jun 2026 23:11:23 +0800 Subject: [PATCH] fix: disable auto-capitalize on Input component for macOS (#3626) Add autoComplete, autoCorrect, autoCapitalize, and spellCheck attributes to prevent macOS from auto-capitalizing the first letter in input fields. --- src/components/ui/input.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx index 98c583d82..7c4785212 100644 --- a/src/components/ui/input.tsx +++ b/src/components/ui/input.tsx @@ -12,6 +12,10 @@ const Input = React.forwardRef( "flex h-9 w-full rounded-md border border-border-default bg-background text-foreground px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:focus:ring-blue-400/20 disabled:cursor-not-allowed disabled:opacity-50", className, )} + autoComplete="off" + autoCorrect="off" + autoCapitalize="off" + spellCheck={false} ref={ref} {...props} />