fix: auto focus reset challenge input

This commit is contained in:
2024-04-06 18:06:10 +02:00
parent 2782966505
commit 8087d10d5a

View File

@@ -14,7 +14,13 @@
<h3>Type the following to confirm the action</h3>
<p>{challengeString}</p>
<input type="text" bind:value={challengeInput} placeholder={challengeString} />
<!-- svelte-ignore a11y-autofocus -->
<input
autofocus
type="text"
bind:value={challengeInput}
placeholder={challengeString}
/>
<button disabled={!isValid} on:click={() => dispatch("confirm")}
>Confirm {challenge}</button