From 03822bb5b1676b999a541766f0af1d46d460ded7 Mon Sep 17 00:00:00 2001 From: Wukong Sun Date: Tue, 14 Jul 2026 11:00:07 +0800 Subject: [PATCH] fix: allow Enter to submit Set Payment Password form Add a hidden default submit button inside the existing
so that pressing Enter in either the Payment Password or Confirm Password field triggers implicit form submission. The form already wired onSubmit to handleSubmit(onConfirm); it only lacked a default submit button, which the HTML spec requires for implicit submission in multi-field forms. --- packages/mask/popups/pages/Wallet/SetPaymentPassword/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/mask/popups/pages/Wallet/SetPaymentPassword/index.tsx b/packages/mask/popups/pages/Wallet/SetPaymentPassword/index.tsx index e35ba93e7ab3..37df4c743920 100644 --- a/packages/mask/popups/pages/Wallet/SetPaymentPassword/index.tsx +++ b/packages/mask/popups/pages/Wallet/SetPaymentPassword/index.tsx @@ -276,6 +276,8 @@ export const Component = memo(function SetPaymentPassword() { {errorMsg} : null} + {/* Hidden default submit button so pressing Enter in either field submits the form. */} +