Skip to content

Commit 99c4697

Browse files
authored
only invoke DayClick if not null (#14)
1 parent c0b47e6 commit 99c4697

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

BlazorScheduler/BlazorScheduler.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PackageLicenseExpression>MIT</PackageLicenseExpression>
99
<PackageProjectUrl></PackageProjectUrl>
1010
<RepositoryUrl>https://github.com/valincius/BlazorScheduler</RepositoryUrl>
11-
<Version>2.1.1</Version>
11+
<Version>2.1.2</Version>
1212
</PropertyGroup>
1313

1414
<ItemGroup>

BlazorScheduler/Internal/Components/SchedulerDay.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private void OnMouseDown(MouseEventArgs e)
3737

3838
private void OnDayClick()
3939
{
40-
Scheduler?.OnDayClick(Day);
40+
Scheduler.OnDayClick?.Invoke(Day);
4141
}
4242
}
4343
}

0 commit comments

Comments
 (0)