ExtensionEngine / tailor

Content authoring platform
MIT License
31 stars 10 forks source link

The ID of the embedded content element is duplicated after the parent element is copied #947

Open bubafinder opened 2 years ago

bubafinder commented 2 years ago

I'm submitting a...

Steps to reproduce

  1. Copy a content element that contains the embedded content element. For example copy Accordion content element that contains HTML element.

Context

After the Accordion content element is copied, the ID of the embedded content element is duplicated causing issues:

  1. Duplicated toolbar on editing embedded elements
  2. Both embedded inputs are focused if any of them is edited (UI issue)
  3. Metadata on the embedded elements are duplicated causing any metadata that is changed on one of them is duplicated on the second

Screenshots

  1. Duplicated toolbar & both inputs are focused when editing any of them image
  2. ID of the first embedded element image
  3. ID of the second embedded element image