Skip to content

Error: The data-live-preserve attribute requires an id attribute #1643

@kachnitel

Description

@kachnitel

Using an id prop on a nested LiveComponent causes an error when child model is updated from parent.

Error:

Error: The data-live-preserve attribute requires an id attribute to be set on the element at live_controller.js:1353:1

How to reproduce

See kachnitel/symfony-live-component-bug@9d28445

  • clone repo and install dependencies
  • start server and go to homepage
  • click the (small and empty) button to call an action in parent component to update data model
  • witness error

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions