Revert login on enter

This commit is contained in:
Andrew Kingston 2021-05-21 15:44:27 +01:00
parent 805b09673a
commit fef5e4288d
1 changed files with 1 additions and 8 deletions

View File

@ -38,12 +38,6 @@
notifications.error("Invalid credentials")
}
}
const submitOnEnter = e => {
if (e.key === "Enter") {
login()
}
}
</script>
<div class="login">
@ -57,13 +51,12 @@
<Divider noGrid />
<Layout gap="XS" noPadding>
<Body size="S" textAlign="center">Sign in with email</Body>
<Input label="Email" bind:value={username} on:keyup={submitOnEnter} />
<Input label="Email" bind:value={username} />
<Input
label="Password"
type="password"
on:change
bind:value={password}
on:keyup={submitOnEnter}
/>
</Layout>
<Layout gap="XS" noPadding>