From 2bb4d0c63d233adfc166a19c450c95da04e40852 Mon Sep 17 00:00:00 2001 From: Krishna Gupta Date: Wed, 20 Dec 2023 21:53:04 +0530 Subject: [PATCH] fix: Settings - Focus shifts to first digit on shortcut & back. Signed-off-by: Krishna Gupta --- .../Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js b/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js index d15405f8029c..453da6eb4c40 100644 --- a/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js +++ b/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js @@ -109,7 +109,7 @@ function BaseValidateCodeForm(props) { if (focusTimeoutRef.current) { clearTimeout(focusTimeoutRef.current); } - focusTimeoutRef.current = setTimeout(inputValidateCodeRef.current.focus, CONST.ANIMATED_TRANSITION); + focusTimeoutRef.current = setTimeout(inputValidateCodeRef.current.focusLastSelected, CONST.ANIMATED_TRANSITION); return () => { if (!focusTimeoutRef.current) { return;