Skip to content

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

Closed
@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

    docsImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions