Skip to content

Fix typo in a Precognition for Alpine.js example #10255

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 1 commit into from
Mar 16, 2025
Merged

Fix typo in a Precognition for Alpine.js example #10255

merged 1 commit into from
Mar 16, 2025

Conversation

johnRivs
Copy link
Contributor

In the Precognition for Alpine.js example where it's shown how to manually submit the form, form is being referenced instead of this.form.

This PR will result in:

<form @submit.prevent="submit" x-data="{
    form: /* ... */,
    submit() {
        this.form.submit()
            .then(() => {
                // form.reset();
                this.form.reset();
            });
    },
}">

@taylorotwell taylorotwell merged commit 594fe1b into laravel:12.x Mar 16, 2025
@johnRivs johnRivs deleted the johnRivs-patch-1 branch March 16, 2025 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants