mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-08 11:02:50 +00:00
fix: auto focus reset challenge input
This commit is contained in:
@@ -14,7 +14,13 @@
|
|||||||
<h3>Type the following to confirm the action</h3>
|
<h3>Type the following to confirm the action</h3>
|
||||||
|
|
||||||
<p>{challengeString}</p>
|
<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")}
|
<button disabled={!isValid} on:click={() => dispatch("confirm")}
|
||||||
>Confirm {challenge}</button
|
>Confirm {challenge}</button
|
||||||
|
|||||||
Reference in New Issue
Block a user