Disable autoCorrect, autoCapitalize and spellCheck on username input.

Some combinations of browsers/OS have them enabled by default, and this is not convenient for username input.
This commit is contained in:
Luca Paolini 2025-05-21 11:24:57 +02:00 committed by GitHub
parent 37d40558b7
commit a18aac23ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,9 @@ export function UserAuthForm({ className, ...props }: UserAuthFormProps) {
<Input
className="text-md w-full border border-input bg-background p-2 hover:bg-accent hover:text-accent-foreground dark:[color-scheme:dark]"
autoFocus
autoCapitalize="off"
autoCorrect="off"
spellCheck="false"
{...field}
/>
</FormControl>