From eba61695629c6f5c0f4cdba09e7be59166f16aa7 Mon Sep 17 00:00:00 2001 From: Tarren Anderson Date: Tue, 7 Nov 2023 09:55:59 -0600 Subject: [PATCH] Limit close event to non-navigation clause --- .../lwc/serviceScheduleCreator/serviceScheduleCreator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/force-app/main/default/lwc/serviceScheduleCreator/serviceScheduleCreator.js b/force-app/main/default/lwc/serviceScheduleCreator/serviceScheduleCreator.js index dd7eba3ac..7297d8a68 100644 --- a/force-app/main/default/lwc/serviceScheduleCreator/serviceScheduleCreator.js +++ b/force-app/main/default/lwc/serviceScheduleCreator/serviceScheduleCreator.js @@ -354,8 +354,8 @@ export default class ServiceScheduleCreator extends NavigationMixin(LightningEle this.navigate(); } else { this.init(); + this.dispatchEvent(new CustomEvent("close", { bubbles: true })); } - this.dispatchEvent(new CustomEvent("close", { bubbles: true })); } reset() {