Skip to content

Commit

Permalink
Fix #1273 by adjusting IsSelected logic
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij committed Jan 17, 2024
1 parent fc0f951 commit 6612c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Components/DateTime/FluentCalendarDay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ internal FluentCalendarDay(FluentCalendar calendar, DateTime day)
/// <summary>
/// Whether the day is selected by the user
/// </summary>
public bool IsSelected => Date == _calendar.Value;
public bool IsSelected => Date.DayOfYear == _calendar.Value.GetValueOrDefault().DayOfYear;

/// <summary>
/// Gets the name of the day and month in current culture.
Expand Down

0 comments on commit 6612c76

Please sign in to comment.