From a2bc5073d069d73f09f382f1d744439c5731869a Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 12 Sep 2024 19:37:15 +0300 Subject: [PATCH] client: Fix note hint not working in calendar --- src/public/app/widgets/buttons/calendar.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/public/app/widgets/buttons/calendar.js b/src/public/app/widgets/buttons/calendar.js index 7d152bdf5..5430a2b96 100644 --- a/src/public/app/widgets/buttons/calendar.js +++ b/src/public/app/widgets/buttons/calendar.js @@ -128,6 +128,8 @@ export default class CalendarWidget extends RightDropdownButtonWidget { else { toastService.showError(t("calendar.cannot_find_day_note")); } + + ev.stopPropagation(); }); // Prevent dismissing the calendar popup by clicking on an empty space inside it. @@ -184,6 +186,7 @@ export default class CalendarWidget extends RightDropdownButtonWidget { if (dateNoteId) { $newDay.addClass('calendar-date-exists'); + $newDay.attr("href", `#root/${dateNoteId}`); } if (this.isEqual(this.date, this.activeDate)) {