Here I've read that CloseActionScreenEvent does not bubble, but we can set in the constructor a EventInit object to force bubbles = true. So I have the following this.dispatchEvent(new CloseActionScreenEvent({bubbles: true}));, but it does not work. What am I missing? I have parent used as the action and inside it a child which have the lightning-quick-action-panel component and I want to close the action from the child.

My current workaround for this is to dispatch a custom event from child and in parent, then handle it a dispatch the standard one to close the modal/action.


1 Answer 1


This finally works, but you need to set the bubbles and composed args like so.

this.dispatchEvent(new CloseActionScreenEvent({ bubbles: true, composed: true }));

Unfortunately I did not find any of this documented anywhere.

You must log in to answer this question.

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