gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: anastasis-webui: auto-focus


From: gnunet
Subject: [taler-wallet-core] branch master updated: anastasis-webui: auto-focus
Date: Wed, 13 Oct 2021 19:34:57 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 6f4c0a6f anastasis-webui: auto-focus
6f4c0a6f is described below

commit 6f4c0a6fb244b8e42b6d91edd3c5901ae39f2202
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Oct 13 19:34:54 2021 +0200

    anastasis-webui: auto-focus
---
 packages/anastasis-webui/src/routes/home/index.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/packages/anastasis-webui/src/routes/home/index.tsx 
b/packages/anastasis-webui/src/routes/home/index.tsx
index 99f8febb..c6bf15be 100644
--- a/packages/anastasis-webui/src/routes/home/index.tsx
+++ b/packages/anastasis-webui/src/routes/home/index.tsx
@@ -585,10 +585,10 @@ function AuthMethodSmsSetup(props: AuthMethodSetupProps) {
       },
     });
   };
-  //const inputRef = useRef<HTMLInputElement>(null);
-  // useLayoutEffect(() => {
-  //   inputRef.current?.focus();
-  // }, []);
+  const inputRef = useRef<HTMLInputElement>(null);
+  useLayoutEffect(() => {
+    inputRef.current?.focus();
+  }, []);
   return (
     <AnastasisClientFrame hideNav title="Add SMS authentication">
       <div>
@@ -601,7 +601,7 @@ function AuthMethodSmsSetup(props: AuthMethodSetupProps) {
           Mobile number:{" "}
           <input
             value={mobileNumber}
-            //ref={inputRef}
+            ref={inputRef}
             style={{ display: "block" }}
             autoFocus
             onChange={(e) => setMobileNumber((e.target as any).value)}

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]