LightningComponent Totasイベント発火後コンポーネントクローズ
Totasイベント発火後にコンポーネントをそのままにしておくとスクロースバーが消えたままになる
⇒
コンポーネント自体のクローズが必要
/*quickAddController.js*/
({
clickAdd: function(component, event, helper) {
// Get the values from the form
var n1 = component.find("num1").get("v.value");
var n2 = component.find("num2").get("v.value");
// Display the total in a "toast" status message
var resultsToast = $A.get("e.force:showToast");
resultsToast.setParams({
"title": "Quick Add: " + n1 + " + " + n2,
"message": "The total is: " + (n1 + n2) + "."
});
resultsToast.fire();
// Close the action panel
var dismissActionPanel = $A.get("e.force:closeQuickAction");
dismissActionPanel.fire();
}
})
https://developer.salesforce.com/docs/component-library/bundle/force:closeQuickAction/documentation