mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-10 05:06:15 -05:00
Fix confirmation field offering autocomplete
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -834,6 +834,7 @@ function BracketReset() {
|
||||
value={confirmText}
|
||||
onChange={(e) => setConfirmText(e.target.value)}
|
||||
id="bracket-confirmation"
|
||||
disableAutoComplete
|
||||
/>
|
||||
</div>
|
||||
<SubmitButton
|
||||
|
||||
Reference in New Issue
Block a user