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

Accordion : Content editor dialog is adding "None" twice in Expanded items field #2656

Open abhinavsinha347 opened 6 months ago

abhinavsinha347 commented 6 months ago

Bug Report

Current Behavior Below are the steps performed on vanilla instance with wknd site.

  1. Add accordion component on the page
  2. Edit the component.
  3. Select "Single item expansion" under properties tab.
  4. Under the Expanded item field we see "None" appears only once.
  5. Navigate to Items tab and add a new component. E.g text component.
  6. Check the "Expanded item" under properties tab. "None" option appears twice.

Expected behavior/code "None" option should appear only once under "Expanded item"

Environment

Possible Solution Issue is because of accordion.js in /libs/core/wcm/components/accordion/v1/accordion/clientlibs/editor/js/accordion.js

Additional context / Screenshots

Screenshot 2024-01-10 at 11 00 55

https://github.com/adobe/aem-core-wcm-components/assets/80462036/403caa67-15b0-4f01-921f-40ae72306295

abhinavsinha347 commented 4 months ago

@joerghoh @klcodanr Is there any way this issue can be looked at ?