Skip to content

Commit

Permalink
MudBaseSelectItem: Clarify OnClick behavior in respect to Href (#8425)
Browse files Browse the repository at this point in the history
Resolves #7650
  • Loading branch information
danielchalmers committed Mar 23, 2024
1 parent 79e01e7 commit 9004282
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MudBlazor/Base/MudBaseSelectItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public abstract class MudBaseSelectItem : MudComponentBase
[Obsolete($"Use {nameof(OnClick)} instead. This will be removed in v7.")]
public ICommand? Command { get; set; }

/// <summary>
/// Click event. Will not be called if <c>Href</c> is also set.
/// </summary>
[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }

Expand Down

0 comments on commit 9004282

Please sign in to comment.