Skip to content

Commit

Permalink
Fixed Carousel Auto=true does not repeat cycle
Browse files Browse the repository at this point in the history
Fix #1774
  • Loading branch information
enchev committed Nov 6, 2024
1 parent fb0d588 commit bf7d99c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Radzen.Blazor/RadzenCarousel.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
if (firstRender)
{
var ts = TimeSpan.FromMilliseconds(Interval);
timer = new System.Threading.Timer(state => InvokeAsync(() => GoTo(selectedIndex + 1)),
timer = new System.Threading.Timer(state => InvokeAsync(Next),
null, Auto ? ts : Timeout.InfiniteTimeSpan, ts);
}
}
Expand Down

0 comments on commit bf7d99c

Please sign in to comment.