I have a button inside the Quick Action pop up window. On click of that i'm opening new Modal (pop-up) when this pop-up opens i would like to close the main Quick Action pop-up.

If i use $A.get("e.force:closeQuickAction").fire(); then both pop-ups getting closed. How can i close the Quick Action pop-up on opening of another Modal.


<aura:if isTrue="{!v.open}">
        <c:newLWC name="{!v.name}"/>

setting v.open to true when button(which is available in the Quick Action pop-up) is clicked. newLWC component entire code is inside Modal(pop-up).

  • how are you opening the second modal? Commented May 28, 2020 at 10:30
  • edited question.
    – steamyfire
    Commented May 28, 2020 at 10:44
  • 1
    You should open a modal using event. Your problem is that you are rendering your modal as part of the quick-action modal, so when your modal is hidden, so is the all its code, including your fake modal Commented May 28, 2020 at 11:01
  • Do you have example ?
    – steamyfire
    Commented May 28, 2020 at 13:10

1 Answer 1


You can set min-height of new component as higher than the Quick Action modal height.

Otherwise, you can set the height of new component as style="height: inherit;" In either of these ways, you can hide the Quick Action modal from users visibility.

Then, you can do all the work in New Modal and then you can navigate to the required page using $A.get("e.force:navigateToSObject") or $A.get("e.force:navigateToURL") etc.,

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .