From 7defbfcc2e1d293215911b116032d36de5ff634b Mon Sep 17 00:00:00 2001 From: Anais Saraiva Date: Mon, 21 Sep 2026 23:54:08 +0200 Subject: [PATCH] Update dialogs.tsx --- frontend/src/components/dialogs.tsx | 33 ++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/dialogs.tsx b/frontend/src/components/dialogs.tsx index 0c6f109..4c02e6b 100644 --- a/frontend/src/components/dialogs.tsx +++ b/frontend/src/components/dialogs.tsx @@ -396,19 +396,25 @@ export function SettingsModal({ return ( -
-
+
+ {/* Filter UI lives OUTSIDE the data on purpose: when the + Providers pane mounts its password fields, browsers and + password-manager extensions must not mistake this filter for + the login username field (autofilling e.g. "admin" into it and + popping their search menu over the modal). */} +
setSearch(e.target.value)} - // The search field lives inside the settings : Enter must - // only filter, never submit (save + close the modal). onKeyDown={(e) => { if (e.key === "Enter") e.preventDefault(); }} placeholder={t("settings.searchPh")} aria-label={t("settings.searchAria")} + name="ka-settings-search" + autoComplete="off" + spellCheck={false} className="w-full rounded-2xl border border-stone-200/70 bg-stone-100 py-2 pl-9 pr-8 text-sm outline-none transition placeholder:text-stone-400 focus:border-accent-500/60 focus:bg-white dark:border-zinc-800 dark:bg-zinc-800/60 dark:placeholder:text-zinc-500 dark:focus:bg-zinc-900" /> {search && ( @@ -423,6 +429,7 @@ export function SettingsModal({ )}
+ {search.trim() && visibleCats.length === 0 ? (

{t("settings.noMatch", { q: search.trim() })}

@@ -525,10 +532,10 @@ export function SettingsModal({ {uploadError &&

{uploadError}

}
- setDisplayName(e.target.value)} maxLength={60} required /> + setDisplayName(e.target.value)} maxLength={60} required autoComplete="nickname" /> - setEmail(e.target.value)} placeholder="you@example.com" inputMode="email" /> + setEmail(e.target.value)} placeholder="you@example.com" inputMode="email" autoComplete="email" /> )} @@ -588,7 +595,8 @@ export function SettingsModal({
- + +
); } @@ -1163,7 +1171,16 @@ function ProvidersSection({ onChanged }: { onChanged?: () => void }) {
setKeys((k) => ({ ...k, [m.id]: e.target.value }))}