diff --git a/Material.Blazor/Components/Menu/MBMenu.razor.cs b/Material.Blazor/Components/Menu/MBMenu.razor.cs
index 5860a27da..de964e3f5 100644
--- a/Material.Blazor/Components/Menu/MBMenu.razor.cs
+++ b/Material.Blazor/Components/Menu/MBMenu.razor.cs
@@ -2,6 +2,7 @@
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
+using System;
using System.Threading.Tasks;
namespace Material.Blazor
@@ -23,6 +24,12 @@ public partial class MBMenu : ComponentFoundation
[Parameter] public MBMenuSurfacePositioning MenuSurfacePositioning { get; set; } = MBMenuSurfacePositioning.Regular;
+ ///
+ /// Called when the menu is closed.
+ ///
+ [Parameter] public Action OnMenuClosed { get; set; }
+
+
private DotNetObjectReference ObjectReference { get; set; }
private ElementReference ElementReference { get; set; }
private bool IsOpen { get; set; } = false;
@@ -66,6 +73,11 @@ protected override void Dispose(bool disposing)
public void NotifyClosed()
{
IsOpen = false;
+
+ if (OnMenuClosed != null)
+ {
+ _ = InvokeAsync(OnMenuClosed);
+ }
}
diff --git a/Material.Blazor/Components/MenuSurface/MBMenuSurface.razor.cs b/Material.Blazor/Components/MenuSurface/MBMenuSurface.razor.cs
index a8991b9e4..c7e95589d 100644
--- a/Material.Blazor/Components/MenuSurface/MBMenuSurface.razor.cs
+++ b/Material.Blazor/Components/MenuSurface/MBMenuSurface.razor.cs
@@ -1,6 +1,7 @@
using Material.Blazor.Internal;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
+using System;
using System.Threading.Tasks;
namespace Material.Blazor
@@ -23,6 +24,12 @@ public partial class MBMenuSurface : ComponentFoundation
[Parameter] public MBMenuSurfacePositioning MenuSurfacePositioning { get; set; } = MBMenuSurfacePositioning.Regular;
+ ///
+ /// Called when the menu is closed.
+ ///
+ [Parameter] public Action OnMenuClosed { get; set; }
+
+
private DotNetObjectReference ObjectReference { get; set; }
private ElementReference ElementReference { get; set; }
private bool IsOpen { get; set; } = false;
@@ -66,6 +73,11 @@ protected override void Dispose(bool disposing)
public void NotifyClosed()
{
IsOpen = false;
+
+ if (OnMenuClosed != null)
+ {
+ _ = InvokeAsync(OnMenuClosed);
+ }
}
diff --git a/Material.Blazor/Components/Paginator/MBPaginator.razor b/Material.Blazor/Components/Paginator/MBPaginator.razor
index aca776cea..5a9930079 100644
--- a/Material.Blazor/Components/Paginator/MBPaginator.razor
+++ b/Material.Blazor/Components/Paginator/MBPaginator.razor
@@ -22,10 +22,10 @@