0

I have component 1 and button when clicked will redirect to component 2. Scroll and refresh works fine in component 1 in salesforce1 but scroll and refresh doesn't work when in component 2 in salesforce1 . Can some one please let me know how to resolve this.

Demo1.cmp

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" >
In component 1
 <lightning:button variant="base" label="Base" title="Base action" onclick="{! c.handleClick }"/>

Demo1Controller.JS

({
handleClick : function(component, event, helper) {
    var evt = $A.get("e.force:navigateToComponent");
     evt.setParams({
        componentDef : "c:DemoCmp2",
        componentAttributes: {

        }
    });
     evt.fire();
}

})

Demo2.cmp

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" >
In cmp 2
<br>
<aura:iteration var="num" items="1,2,3,4,5,6,7,8,9">
    {!num}<br></br>

    </aura:iteration>
</br>

Scroll / refresh is not working when redirected to Demo2.cmp in salesforce1.

Please help me out to understand the reason for happening and solution to resolve.

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.