Skip to content

Commit

Permalink
AnimationEnd | Null check SelectedSlide (#5312)
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Moreira authored Feb 16, 2024
1 parent 30469fc commit 701bc1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Blazorise/Components/Carousel/Carousel.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ protected virtual async Task AnimationEnd( CarouselSlide slide )
{
var selectedSlide = GetSelectedCarouselSlide();

if ( selectedSlide is null )
return;

if ( slide.Name == selectedSlide.Name )
{
AnimationRunning = false;
Expand Down

0 comments on commit 701bc1b

Please sign in to comment.