From 1576a25f9503da7692ac1d631e21ce0f46dcb301 Mon Sep 17 00:00:00 2001 From: Inbal Date: Tue, 3 Oct 2023 10:07:11 +0300 Subject: [PATCH] missing scrolling handling on required resource error handling --- .../mobileAppointmentBookingLanding.js | 2 ++ .../mobileAppointmentBookingRescheduleAppointment.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/RescheduleAppointments/force-app/main/default/lwc/mobileAppointmentBookingLanding/mobileAppointmentBookingLanding.js b/RescheduleAppointments/force-app/main/default/lwc/mobileAppointmentBookingLanding/mobileAppointmentBookingLanding.js index ab7313c..b274306 100644 --- a/RescheduleAppointments/force-app/main/default/lwc/mobileAppointmentBookingLanding/mobileAppointmentBookingLanding.js +++ b/RescheduleAppointments/force-app/main/default/lwc/mobileAppointmentBookingLanding/mobileAppointmentBookingLanding.js @@ -754,6 +754,7 @@ export default class MobileAppointmentBookingLanding extends LightningElement { +error ); this.timeSlotDateWise = []; + this.allowScrolling(); }); } }) @@ -762,6 +763,7 @@ export default class MobileAppointmentBookingLanding extends LightningElement { "Error While assigning current user as required resource: " + error ); + this.allowScrolling(); }); }); } else if (saData.error) { diff --git a/RescheduleAppointments/force-app/main/default/lwc/mobileAppointmentBookingRescheduleAppointment/mobileAppointmentBookingRescheduleAppointment.js b/RescheduleAppointments/force-app/main/default/lwc/mobileAppointmentBookingRescheduleAppointment/mobileAppointmentBookingRescheduleAppointment.js index b5bc4e0..1174f42 100644 --- a/RescheduleAppointments/force-app/main/default/lwc/mobileAppointmentBookingRescheduleAppointment/mobileAppointmentBookingRescheduleAppointment.js +++ b/RescheduleAppointments/force-app/main/default/lwc/mobileAppointmentBookingRescheduleAppointment/mobileAppointmentBookingRescheduleAppointment.js @@ -18,12 +18,14 @@ export default class MobileAppointmentBookingRescheduleAppointment extends Light @api assignToName; handleConfirmBtnClose(event) { + event.preventDefault(); event.stopPropagation(); const customEvent = new CustomEvent("rescheduleclosewindow"); this.dispatchEvent(customEvent); } handleConfirm(event) { + event.preventDefault(); event.stopPropagation(); this.showSpinner = true;