I want to close quick action after e.force:editRecord
event, I tried without e.force:editRecord
event but in that case also quick action is not closing, I tried with setInterval
function with delay 1s, this also not works for me. Any advice
({
doInit: function(component, event, helper) {
if ($A.get("$Browser.isPhone")) {
component.set("v.isMobileorTablet", true);
} else if ($A.get("$Browser.isTablet")) {
component.set("v.isMobileorTablet", true);
} else {
var editRecordEvent = $A.get("e.force:editRecord");
editRecordEvent.setParams({
recordId: component.get("v.recordId")
});
editRecordEvent.fire();
$A.get("e.force:closeQuickAction").fire();
}
}
});
$A.get("e.force:closeQuickAction").fire();
line?