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
{{ message }}
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.
I have a simple Livewire component that returns a table. Each row has a delete button that is an alpine component. Clicking this delete button shows a confirmation modal which has a show = false data and should be hidden by default.
Before I add the alpine-plugin, none of the alpine components would be initialized after dom changes, so I had to cancel a dozen delete confirmation modals every time my Livewire table updated.
Now that I've added the plugin, alpine components that were in the original html are initialied, but the new one is not. If I create a new row using Livewire, its modal is open by default and its @click won't work either.
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
I red the code for alpine plugin and alpine's index.js and figured a hacky way to fix this. I put an x-data attribute on my livewire components root element.
But this should work without a hack. if the root element isn't an alpine component but some parts of new html returned by livewire contains tags with x-data they should be initialized.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a simple Livewire component that returns a table. Each row has a delete button that is an alpine component. Clicking this delete button shows a confirmation modal which has a
show = false
data and should be hidden by default.Before I add the alpine-plugin, none of the alpine components would be initialized after dom changes, so I had to cancel a dozen delete confirmation modals every time my Livewire table updated.
Now that I've added the plugin, alpine components that were in the original html are initialied, but the new one is not. If I create a new row using Livewire, its modal is open by default and its
@click
won't work either.What am I doing wrong?
The text was updated successfully, but these errors were encountered: