Skip to content

Commit 0724cd7

Browse files
authored
Stepper ActiveStepChangeFix (#157)
1 parent 36af482 commit 0724cd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeBeam.MudBlazor.Extensions/Components/Stepper/MudStepper.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ protected internal async Task SetActiveIndex(MudStep step)
202202
await _animate.Refresh();
203203
}
204204
ActiveIndex = Steps.IndexOf(step);
205-
await ActiveStepChanged.InvokeAsync();
205+
await ActiveStepChanged.InvokeAsync(ActiveIndex);
206206
}
207207

208208
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
250250

251251
if (backupActiveIndex != ActiveIndex)
252252
{
253-
await ActiveStepChanged.InvokeAsync();
253+
await ActiveStepChanged.InvokeAsync(ActiveIndex);
254254
}
255255
}
256256

0 commit comments

Comments
 (0)