Facing an issue with <lightning:accordionSection>. There is a managed package which is rendering components in accordions we need to specify those components in config. However, now there is an issue coming with recordEditForm

  1. first time it is working completely fine, however after accordion close and open it is not rendering fields and sections
  2. List item

. Later after few debugs and tried dynamically creating other component it is not working.

Let me know if there are any alternatives(Please remember I can only control newly created components and recordEditForm, not the component which is rendering accordions). Tried following things:

  1. Creation of component at runtime in doInit - however it is not triggering
  2. Using html span and it's onload event - it is not working.

Adding dummy code to demonstrate the same:


<aura:component >
    <lightning:accordion aura:id="accordion" activeSectionName="B"  allowMultipleSectionsOpen="true">
        <lightning:accordionSection name="B" label="Accordion Title B">
                <p>This is the content area for section B.</p>                    
        <lightning:accordionSection name="D" label="Accordion Title D">
            <c:subAccordionCmp />


<aura:component >
    <aura:attribute name="Count" type="Integer" default="0" />
    <aura:handler name="init" value="{! this }" action="{! c.doInit }" />   
        Hello World - {! v.Count } times. 

doInit method

doInit : function(component, event, helper) {
        let cnt = component.get("v.Count");
        let updatedCnt = parseInt(cnt) + 1;
        component.set("v.Count", updatedCnt);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.