Skip to content

Commit 5756d90

Browse files
authored
StepperExtended Fix Crash When Animate Set False (#521)
1 parent 7b19afc commit 5756d90

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)