Fix confirmation field offering autocomplete

This commit is contained in:
Kalle
2024-03-07 18:11:01 +02:00
parent be87a88544
commit 829b0af9c0
2 changed files with 4 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ export function Input({
value,
placeholder,
onChange,
disableAutoComplete = false,
}: {
name?: string;
id?: string;
@@ -40,6 +41,7 @@ export function Input({
value?: string;
placeholder?: string;
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
disableAutoComplete?: boolean;
}) {
return (
<div className={clsx("input-container", className)}>
@@ -61,6 +63,7 @@ export function Input({
required={required}
placeholder={placeholder}
type={type}
autoComplete={disableAutoComplete ? "one-time-code" : undefined}
/>
{icon}
</div>

View File

@@ -834,6 +834,7 @@ function BracketReset() {
value={confirmText}
onChange={(e) => setConfirmText(e.target.value)}
id="bracket-confirmation"
disableAutoComplete
/>
</div>
<SubmitButton