Skip to content

Build your personal knowledge base with Trilium Notes

client: Fix note hint not working in calendar

Elian Dorana2bc5073d069
diff --git a/src/public/app/widgets/buttons/calendar.js b/src/public/app/widgets/buttons/calendar.js
index 7d152bdf5e..5430a2b96b 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)) {