Skip to content

Commit c1e51ae

Browse files
committed
StepperExtended Fix Crash When Animate Set False
1 parent 6b2235b commit c1e51ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeBeam.MudBlazor.Extensions/Components/StepperExtended/MudStepperExtended.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ public async Task SetActiveIndex(int count, bool firstCompleted = false, bool sk
413413

414414

415415
int backupActiveIndex = ActiveIndex;
416-
if (_animate != null)
416+
if (_animate != null && Animation == true)
417417
{
418418
await _animate.Refresh();
419419
}
@@ -482,7 +482,7 @@ public async Task SetActiveStepByIndex(int index, bool firstCompleted = false, b
482482
return;
483483
}
484484

485-
if (_animate != null)
485+
if (_animate != null && Animation == true)
486486
{
487487
await _animate.Refresh();
488488
}

0 commit comments

Comments
 (0)