Skip to content

Fix profile form not submitting #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/js/components/DeleteUser.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

<div class="grid gap-2">
<Label for="password" class="sr-only">Password</Label>
<Input id="password" type="password" name="password" ref={passwordInput} value={$form.password} placeholder="Password" />
<Input id="password" type="password" name="password" ref={passwordInput} bind:value={$form.password} placeholder="Password" />
<InputError message={$form.errors.password} />
</div>

Expand Down
2 changes: 1 addition & 1 deletion resources/js/pages/auth/ConfirmPassword.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</div>

<div class="flex items-center">
<Button class="w-full" disabled={$form.processing}>
<Button type="submit" class="w-full" disabled={$form.processing}>
{#if $form.processing}
<LoaderCircle class="h-4 w-4 animate-spin" />
{/if}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/pages/auth/ForgotPassword.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</div>

<div class="my-6 flex items-center justify-start">
<Button class="w-full" disabled={$form.processing}>
<Button type="submit" class="w-full" disabled={$form.processing}>
{#if $form.processing}
<LoaderCircle class="h-4 w-4 animate-spin" />
{/if}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/pages/auth/VerifyEmail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{/if}

<form onsubmit={submit} class="space-y-6 text-center">
<Button disabled={$form.processing} variant="secondary">
<Button type="submit" disabled={$form.processing} variant="secondary">
{#if $form.processing}
<LoaderCircle class="h-4 w-4 animate-spin" />
{/if}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/pages/settings/Password.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</div>

<div class="flex items-center gap-4">
<Button disabled={$form.processing}>Save Password</Button>
<Button type="submit" disabled={$form.processing}>Save Password</Button>

{#if $form.recentlySuccessful}
<p class="text-sm text-neutral-600" transition:fade={{ duration: 150 }}>Saved.</p>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/pages/settings/Profile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
{/if}

<div class="flex items-center gap-4">
<Button disabled={$form.processing}>Save</Button>
<Button type="submit" disabled={$form.processing}>Save</Button>

{#if $form.recentlySuccessful}
<p class="text-sm text-neutral-600" transition:fade={{ duration: 150 }}>Saved.</p>
Expand Down