You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple Livewire form components and want to conditionally display them inside a modal. This part is working fine, but since some of my forms use the same input ID attributes I want to use template tags so that only one form is actually rendered on the page at any one time.
I'm also using AlpineJS to leverage its x-if directive which conditionally renders each template tag depending on what form has been selected by the user.
As I said the modal form displays correctly but when I hit submit on the form the entire page reloads appending a question mark in the address bar - so my Livewire component's submit method is not being called, wire:model also no longer works as no XHRs are being sent to the server as I type.
Apologies if this is by design (or more likely I am misunderstanding something) and not considered a bug, or also if I should be posting on the AlpineJS repo instead.
Description
I have multiple Livewire form components and want to conditionally display them inside a modal. This part is working fine, but since some of my forms use the same input ID attributes I want to use template tags so that only one form is actually rendered on the page at any one time.
I'm also using AlpineJS to leverage its x-if directive which conditionally renders each template tag depending on what form has been selected by the user.
As I said the modal form displays correctly but when I hit submit on the form the entire page reloads appending a question mark in the address bar - so my Livewire component's submit method is not being called, wire:model also no longer works as no XHRs are being sent to the server as I type.
Apologies if this is by design (or more likely I am misunderstanding something) and not considered a bug, or also if I should be posting on the AlpineJS repo instead.
Steps to reproduce
Context
The text was updated successfully, but these errors were encountered: