Accordion initial attribute doesn't seem to work properly

Hello,

For some reason when i use the attribute fs-accordion-initial=“1” the layers of first item does get the combo class is-active-accordion. But on first view this doesn’t do anything. when i click again the combo class is removed. after a second click the combo class is added again and only then works as aspected.

Current behavior:

  • open menu: first item closed
  • 1st click first item: first item closed but removes comboclass
  • 2nd click: first item opens and comboclass is added

Desired behavior:

  • open menu: first item open
  • click on first item or any other item: first item closed

Cheers

Fixed it by adding some styles to the embed:
.fs_accordion-2_component.is-active-accordion{max-height: none !important;}

1 Like

Great solution @Leon1!