From 50e49d06bce59895573a4808d8634a9bcc5634f1 Mon Sep 17 00:00:00 2001 From: zipg Date: Thu, 30 Jul 2026 16:47:04 +0800 Subject: [PATCH] fix(ui): correct encrypted export passphrase tab order --- .../config/ConfigPassphraseDialog.vue | 4 +- .../src/components/ui/PasswordInput.vue | 12 ++++- .../lib/__tests__/ui/passwordInput.spec.ts | 46 +++++++++++++++++++ 3 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 apps/desktop/src/lib/__tests__/ui/passwordInput.spec.ts diff --git a/apps/desktop/src/components/config/ConfigPassphraseDialog.vue b/apps/desktop/src/components/config/ConfigPassphraseDialog.vue index 5c3bd6e4bc..7b4c1541e7 100644 --- a/apps/desktop/src/components/config/ConfigPassphraseDialog.vue +++ b/apps/desktop/src/components/config/ConfigPassphraseDialog.vue @@ -76,12 +76,12 @@ const displayError = computed(() => error.value || props.externalError || "");
- +
- +

{{ displayError }}

diff --git a/apps/desktop/src/components/ui/PasswordInput.vue b/apps/desktop/src/components/ui/PasswordInput.vue index 56fd198ad9..a6603f3b6a 100644 --- a/apps/desktop/src/components/ui/PasswordInput.vue +++ b/apps/desktop/src/components/ui/PasswordInput.vue @@ -13,6 +13,7 @@ const props = withDefaults( class?: string; inputClass?: string; showToggle?: boolean; + toggleTabIndex?: number; showLabel?: string; hideLabel?: string; }>(), @@ -29,7 +30,16 @@ const toggleLabel = computed(() => (visible.value ? props.hideLabel || t("common