From 38999ac66625305ec7069ebf715af448e143df50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Wed, 19 Aug 2026 10:41:43 +0000 Subject: [PATCH] wrap the vaultwarden url field in a form so enter submits Co-Authored-By: Claude Opus 5 --- web/VaultPanel.tsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/web/VaultPanel.tsx b/web/VaultPanel.tsx index 92e66e4..c295b16 100644 --- a/web/VaultPanel.tsx +++ b/web/VaultPanel.tsx @@ -108,7 +108,8 @@ export const VaultPanel = () => { // eslint-disable-next-line react-hooks/exhaustive-deps }, []); - const save = async () => { + const save = async (ev?: React.FormEvent) => { + ev?.preventDefault(); setSaving(true); setError(null); try { @@ -182,14 +183,11 @@ export const VaultPanel = () => { -
+
setUrl(ev.target.value)} - onKeyDown={(ev) => { - if (ev.key === 'Enter' && dirty && !saving) void save(); - }} placeholder="https://vault.example.com" spellCheck={false} autoCapitalize="none" @@ -206,8 +204,7 @@ export const VaultPanel = () => {
)}
-
+ {config?.configured && (