Skip to content

Commit

Permalink
Merge pull request #488 from mwhesotech/AnnotatationPointEventFix
Browse files Browse the repository at this point in the history
BugFix: AnnotationPoint events are not working
  • Loading branch information
joadan authored Oct 6, 2024
2 parents 484a1ff + 9e4cbbd commit c18210f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Blazor-ApexCharts/ApexChart.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1102,17 +1102,17 @@ private void SetAnnotationPointEvent(AnnotationsPoint annotation)
annotation.Id = Guid.NewGuid().ToString();
}

if (OnAnnotationLabelClick.HasDelegate)
if (OnAnnotationPointClick.HasDelegate)
{
annotation.SetEventFunction(AnnotationEventType.Click);
}

if (OnAnnotationLabelMouseEnter.HasDelegate)
if (OnAnnotationPointMouseEnter.HasDelegate)
{
annotation.SetEventFunction(AnnotationEventType.MouseEnter);
}

if (OnAnnotationLabelMouseLeave.HasDelegate)
if (OnAnnotationPointMouseLeave.HasDelegate)
{
annotation.SetEventFunction(AnnotationEventType.MouseLeave);
}
Expand Down

0 comments on commit c18210f

Please sign in to comment.