diff --git a/components/ui/input.tsx b/components/ui/input.tsx index c3f2671ff0..4d4774126a 100644 --- a/components/ui/input.tsx +++ b/components/ui/input.tsx @@ -2,7 +2,8 @@ import * as React from 'react' import { cn } from '@/lib/utils' const Input = React.forwardRef>( - ({ className, type, ...props }, ref) => { + ({ className, type, autoComplete = 'off', name, ...props }, ref) => { + const randomName = name || `input-${Math.random()}` return ( >( className )} ref={ref} + autoComplete={autoComplete} + autoCorrect="off" + autoCapitalize="off" + spellCheck="false" + name={randomName} {...props} /> )