adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
726 stars 735 forks source link

Tab component is not synchronized to it's original state after the inheritance is restored. #2623

Open Abhibeck777 opened 8 months ago

Abhibeck777 commented 8 months ago

Tab component is not synchronized to it's original state after the inheritance is restored.

Steps to Reproduce

  1. Create a page (/content/wknd/language-masters/en/test.html) in language master that has Tab component with 2 items (Let's say container 1 and container 2)
  2. Create a live copy of this page (/content/wknd/language-masters/de/test.html)
  3. Break the inheritance of the Tab component on the live copy (/content/wknd/language-masters/de/test.html)
  4. Add another item (let's say container 3) on this Tab component in the live copy page (/content/wknd/language-masters/de/test.html)
  5. Re-enable the inheritance for the Tab component

Once inheritance is re-enabled for the tab component, the newly added item ( container 3) from the step above should be deleted and the Tab component should be restored to it's original state (Tab components with 2 items - container 1 and 2)

But the changes added after breaking the inheritance (container 3) still remains on Tab component even after re-enabling the inheritance

The issue is reproducible on local SDK (2023.11.14227.20231108T162349Z-231000) and wknd code No errors reported in error.log

Expected Behaviour Tab component should be restored to it's original state (from master copy) after the inheritance is re-enabled on Live copy

Actual Behaviour Tab component retains the changes made to it on live copy even though inheritance is re-enabled to restore the component to it's original state from master copy

Platform and Version

AEM version: AEM Cloud SDK 2023.11.14227.20231108T162349Z-231000 Core Components version: core.wcm.components.content-2.23.4.zip