Skip to content

[Question] LiveView Re-render Breaks Flowbite's Interactive Elements (Dropdown) #1108

@lillo42

Description

@lillo42

Hello folks,

I'm building a table with LiveView and Flowbite (using the "advanced table" block as a reference) and have run into an issue with dynamic content.

The table supports pagination and filtering, which are handled by performing a new database query and updating the LiveView's assigns. This works perfectly for the data itself.

However, each row has a "three-dots" button that should open a Flowbite dropdown menu for actions (edit, delete, etc.). This button works on the initial page load, but it stops working after any LiveView update, such as changing the page or applying a filter.

I've confirmed that the button's HTML is re-rendered correctly, but the click event no longer triggers the dropdown.

Is this a known issue with integrating Flowbite and LiveView? Am I missing a step to re-initialize the Flowbite components after the DOM is updated? Any guidance would be greatly appreciated

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