Skip to content
This repository was archived by the owner on Mar 15, 2020. It is now read-only.
This repository was archived by the owner on Mar 15, 2020. It is now read-only.

A newly added alpine component returned from a Livewire component is never initialized #2

@mokhosh

Description

@mokhosh

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions