Skip to content

Commit

Permalink
Fix clicking a calendar day not taking you there in the index
Browse files Browse the repository at this point in the history
Regression from 0ea0a9f
  • Loading branch information
danielchalmers committed Nov 16, 2024
1 parent a6f0a23 commit 945684a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion JournalApp/Pages/Calendar/CalendarPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{
<div style="padding-bottom: 40vh;">
<CalendarView GridYear="_gridYear.Value" OpenToDate="OpenToDate"
CalendarRendered="ScrollToOpenToDate" DayClicked="@(EventUtil.AsNonRenderingEventHandler(Close))"
CalendarRendered="ScrollToOpenToDate" DayClicked="(d) => Close(d)"
PreviousMonthClicked="PreviousMonth" NextMonthClicked="NextMonth" />
</div>
}
Expand Down Expand Up @@ -143,6 +143,7 @@
return;

ActionTaken("click_mood_grid_day");
logger.LogInformation($"Clicked grid day {date}");
NavigationManager.NavigateTo($"/{date:yyyyMMdd}", false, true);
}

Expand Down

0 comments on commit 945684a

Please sign in to comment.