Skip to content

Commit

Permalink
fix(register): 🐛 Unclickable Inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Jul 17, 2023
1 parent dd7e8ed commit 33d81f8
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions src/login/pages/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,7 @@ export default function Register(
{msg("registerText")}
</Text>

<form
action={url.registrationAction}
method="post"
onSubmit={(event) => {
if (!form.isValid()) {
form.validate();
event.preventDefault();
}
}}
>
<form action={url.registrationAction} method="post">
<input
type="text"
id="firstName"
Expand All @@ -111,7 +102,7 @@ export default function Register(
autoComplete="username"
required
name="username"
{...form.getInputProps("username")}
// {...form.getInputProps("username")}
/>
)}

Expand All @@ -120,7 +111,7 @@ export default function Register(
required
mt="md"
name="email"
{...form.getInputProps("email")}
// {...form.getInputProps("email")}
/>

{passwordRequired && (
Expand All @@ -131,15 +122,17 @@ export default function Register(
required
mt="md"
name="password"
{...form.getInputProps("password")}
autoComplete="new-password"
// {...form.getInputProps("password")}
/>
<PasswordInput
label={msg("passwordConfirm")}
placeholder=""
required
mt="md"
name="password-confirm"
{...form.getInputProps("password-confirm")}
autoComplete="new-password"
// {...form.getInputProps("password-confirm")}
/>
</>
)}
Expand Down

0 comments on commit 33d81f8

Please sign in to comment.