Skip to content

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