diff --git a/packages/wallet-webui/src/screens/UriInputScreen.tsx b/packages/wallet-webui/src/screens/UriInputScreen.tsx index 7def8c7ef..d687139c9 100644 --- a/packages/wallet-webui/src/screens/UriInputScreen.tsx +++ b/packages/wallet-webui/src/screens/UriInputScreen.tsx @@ -1,3 +1,4 @@ +import { useEffect, useRef } from "preact/hooks"; import { Button } from "../ui/Button.js"; import { Card } from "../ui/Card.js"; import { i18n } from "../i18n/runtime.js"; @@ -13,6 +14,11 @@ export function UriInputScreen(props: { onScan: () => void; onBack: () => void; }) { + const input = useRef(null); + // The link is the only thing to enter on this page. + useEffect(() => { + input.current?.focus({ preventScroll: true }); + }, []); return (
@@ -43,6 +49,7 @@ export function UriInputScreen(props: { class="text-sm font-semibold" >{i18n.str`Wallet link`}