From 9cf45468aebe59893817fd2f5a21244bb69967a5 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 2 Sep 2024 22:24:53 +0300 Subject: [PATCH] client: Prevent dismissing the calendar popup by clicking on an empty space inside it --- src/public/app/widgets/buttons/calendar.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/public/app/widgets/buttons/calendar.js b/src/public/app/widgets/buttons/calendar.js index da4312793..388f8cb61 100644 --- a/src/public/app/widgets/buttons/calendar.js +++ b/src/public/app/widgets/buttons/calendar.js @@ -128,7 +128,10 @@ export default class CalendarWidget extends RightDropdownButtonWidget { else { toastService.showError(t("calendar.cannot_find_day_note")); } - }); + }); + + // Prevent dismissing the calendar popup by clicking on an empty space inside it. + this.$dropdownContent.on("click", (e) => e.stopPropagation()); } manageFirstDayOfWeek() {