Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/Core/Components/Menu/FluentMenuItem.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ public partial class FluentMenuItem : FluentComponentBase, IDisposable
[Parameter]
public bool Checked { get; set; }

/// <summary>
/// Gets or sets a value indicates whether the FluentMenu should remain open after an action.
/// </summary>
[Parameter]
public bool KeepOpen { get; set; }

/// <summary>
/// Gets or sets the content to be rendered inside the component.
/// </summary>
Expand Down Expand Up @@ -78,7 +84,7 @@ protected async Task OnClickHandlerAsync(MouseEventArgs ev)
return;
}

if (Owner != null)
if (Owner != null && !KeepOpen)
{
await Owner.CloseAsync();
}
Expand Down