client: Prevent dismissing the calendar popup by clicking on an empty space inside it

This commit is contained in:
Elian Doran 2024-09-02 22:24:53 +03:00
parent c2ce7d617a
commit 9cf45468ae
No known key found for this signature in database

View File

@ -129,6 +129,9 @@ export default class CalendarWidget extends RightDropdownButtonWidget {
toastService.showError(t("calendar.cannot_find_day_note")); 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() { manageFirstDayOfWeek() {