From 829b0af9c06ac8e99b1a05aa35c2c52bd554af94 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Thu, 7 Mar 2024 18:11:01 +0200 Subject: [PATCH] Fix confirmation field offering autocomplete --- app/components/Input.tsx | 3 +++ app/features/tournament/routes/to.$id.admin.tsx | 1 + 2 files changed, 4 insertions(+) diff --git a/app/components/Input.tsx b/app/components/Input.tsx index 96e026dc4..9f4ee47f2 100644 --- a/app/components/Input.tsx +++ b/app/components/Input.tsx @@ -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) => void; + disableAutoComplete?: boolean; }) { return (
@@ -61,6 +63,7 @@ export function Input({ required={required} placeholder={placeholder} type={type} + autoComplete={disableAutoComplete ? "one-time-code" : undefined} /> {icon}
diff --git a/app/features/tournament/routes/to.$id.admin.tsx b/app/features/tournament/routes/to.$id.admin.tsx index bbc80f2af..9c68fff96 100644 --- a/app/features/tournament/routes/to.$id.admin.tsx +++ b/app/features/tournament/routes/to.$id.admin.tsx @@ -834,6 +834,7 @@ function BracketReset() { value={confirmText} onChange={(e) => setConfirmText(e.target.value)} id="bracket-confirmation" + disableAutoComplete />