From 2206674d0be9339d0bad364e7b774b59a4fdeb9e Mon Sep 17 00:00:00 2001 From: mckaragoz <78308169+mckaragoz@users.noreply.github.com> Date: Fri, 10 Mar 2023 14:57:07 +0300 Subject: [PATCH] Stepper ActiveStepChangeFix --- .../Components/Stepper/MudStepper.razor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CodeBeam.MudBlazor.Extensions/Components/Stepper/MudStepper.razor.cs b/CodeBeam.MudBlazor.Extensions/Components/Stepper/MudStepper.razor.cs index a44995c0..b2812235 100644 --- a/CodeBeam.MudBlazor.Extensions/Components/Stepper/MudStepper.razor.cs +++ b/CodeBeam.MudBlazor.Extensions/Components/Stepper/MudStepper.razor.cs @@ -202,7 +202,7 @@ protected internal async Task SetActiveIndex(MudStep step) await _animate.Refresh(); } ActiveIndex = Steps.IndexOf(step); - await ActiveStepChanged.InvokeAsync(); + await ActiveStepChanged.InvokeAsync(ActiveIndex); } public async Task SetActiveIndex(int count, bool firstCompleted = false, bool skipPreventProcess = false) @@ -250,7 +250,7 @@ public async Task SetActiveIndex(int count, bool firstCompleted = false, bool sk if (backupActiveIndex != ActiveIndex) { - await ActiveStepChanged.InvokeAsync(); + await ActiveStepChanged.InvokeAsync(ActiveIndex); } }