Skip to content

Commit

Permalink
only invoke DayClick if not null (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
valincius committed Sep 20, 2021
1 parent c0b47e6 commit 99c4697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BlazorScheduler/BlazorScheduler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl></PackageProjectUrl>
<RepositoryUrl>https://github.com/valincius/BlazorScheduler</RepositoryUrl>
<Version>2.1.1</Version>
<Version>2.1.2</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion BlazorScheduler/Internal/Components/SchedulerDay.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private void OnMouseDown(MouseEventArgs e)

private void OnDayClick()
{
Scheduler?.OnDayClick(Day);
Scheduler.OnDayClick?.Invoke(Day);
}
}
}

0 comments on commit 99c4697

Please sign in to comment.