mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 13:19:09 +03:00
disable form inputs while submitting
This commit is contained in:
1 parent
e63bb0e70f
commit
72b4aa1b09
4 files changed
+6
No files matched your search
@@ -72,6 +72,7 @@ const ForgotPasswordForm = () => {
|
||||
type="email"
|
||||
label="Email"
|
||||
placeholder="you@example.com"
|
||||
disabled={isSubmitting}
|
||||
/>
|
||||
|
||||
<div className="self-center">
|
||||
|
||||
@@ -56,6 +56,7 @@ const ResetPasswordForm = () => {
|
||||
type="password"
|
||||
label="Password"
|
||||
placeholder="••••••••"
|
||||
disabled={isSubmitting}
|
||||
/>
|
||||
|
||||
<div className="border-overlay-border border-t" />
|
||||
|
||||
@@ -81,6 +81,7 @@ const SignInForm = () => {
|
||||
type="email"
|
||||
label="Email"
|
||||
placeholder="you@example.com"
|
||||
disabled={isSubmitting}
|
||||
/>
|
||||
|
||||
<div className="relative">
|
||||
@@ -90,6 +91,7 @@ const SignInForm = () => {
|
||||
type="password"
|
||||
label="Password"
|
||||
placeholder="••••••••"
|
||||
disabled={isSubmitting}
|
||||
/>
|
||||
|
||||
{/* positioned using absolute instead of labelOptional prop so tabbing between inputs works smoothly */}
|
||||
|
||||
@@ -76,6 +76,7 @@ const SignUpForm = () => {
|
||||
type="email"
|
||||
label="Email"
|
||||
placeholder="you@example.com"
|
||||
disabled={isSubmitting}
|
||||
/>
|
||||
|
||||
<Input
|
||||
@@ -84,6 +85,7 @@ const SignUpForm = () => {
|
||||
type="password"
|
||||
label="Password"
|
||||
placeholder="••••••••"
|
||||
disabled={isSubmitting}
|
||||
/>
|
||||
|
||||
<div className="self-center">
|
||||
|
||||
Reference in new issue
Block a user