From 2288c001dfadbfbb186527f6a5cc961015a69922 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 16 Mar 2024 15:23:00 +0800 Subject: [PATCH] :bug: Fix input won't reset --- pkg/views/src/components/auth/FactorApplicator.vue | 1 + pkg/views/src/components/auth/FactorPicker.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/views/src/components/auth/FactorApplicator.vue b/pkg/views/src/components/auth/FactorApplicator.vue index 4571c5a..6a332da 100644 --- a/pkg/views/src/components/auth/FactorApplicator.vue +++ b/pkg/views/src/components/auth/FactorApplicator.vue @@ -77,6 +77,7 @@ async function submit() { emits("swap", "pick") emits("update:challenge", data["challenge"]) error.value = null + password.value = "" } } } diff --git a/pkg/views/src/components/auth/FactorPicker.vue b/pkg/views/src/components/auth/FactorPicker.vue index 730a5c5..b107398 100644 --- a/pkg/views/src/components/auth/FactorPicker.vue +++ b/pkg/views/src/components/auth/FactorPicker.vue @@ -54,6 +54,7 @@ async function submit() { emits("update:currentFactor", item) emits("swap", "applicator") error.value = null + focus.value = null } emits("update:loading", false) }