Skip to content

Commit

Permalink
Check disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Oct 8, 2024
1 parent 424bac2 commit bc09954
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@
<items>
<input-container>
<input placeholder="Preferred Username" on:input={checkUsernameInput} on:keyup={
(event) => {
if (event.key === "Enter") {
requestReport();
}
(event) => {
if (event.key === "Enter") {
if (!button.disabled) {
requestReport();
}
}
}
} bind:this={usernameInput}>
</input-container>
<button id="submit" on:click={requestReport} bind:this={button}>
Expand Down

0 comments on commit bc09954

Please sign in to comment.