Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Null Reference Exception in Carousel when navigating away while carousel is animating #5310

Closed
almostjulian opened this issue Feb 14, 2024 · 0 comments
Assignees
Labels
Priority: Critical ☠ Possible bug Type: Bug 🐞 Something isn't working
Projects
Milestone

Comments

@almostjulian
Copy link

Blazorise Version

1.4.2

What Blazorise provider are you running on?

Bootstrap4

Link to minimal reproduction, or a simple code snippet

@page "/"
<Carousel @bind-SelectedSlide="@selectedSlide">
    <CarouselSlide Name="1">
        <Image Source="img/gallery/1.jpg" Text="Lights image" Display="Display.Block" Width="Width.Is100" />
    </CarouselSlide>
    <CarouselSlide Name="2">
        <Image Source="img/gallery/2.jpg" Text="Keyboard image" Display="Display.Block" Width="Width.Is100" />
    </CarouselSlide>
    <CarouselSlide Name="3">
        <Image Source="img/gallery/3.jpg" Text="Road image" Display="Display.Block" Width="Width.Is100" />
    </CarouselSlide>
</Carousel>

<Link To="otherpage">Link</Link>

Steps to reproduce

Create another internal page to link to, then click the link while the carousel is animating

What is expected?

Navigation to other page without error

What is actually happening?

NRE in Carousel.cs, AnimationEnd method

What browsers are you seeing the problem on?

Chrome

Any additional comments?

No response

@almostjulian almostjulian added the Type: Bug 🐞 Something isn't working label Feb 14, 2024
@stsrki stsrki added this to 🔙 Backlog in Support via automation Feb 15, 2024
@stsrki stsrki added this to the 1.4 support milestone Feb 15, 2024
@David-Moreira David-Moreira moved this from 🔙 Backlog to 💪 In progress in Support Feb 15, 2024
@David-Moreira David-Moreira moved this from 💪 In progress to ⏳ In Review in Support Feb 15, 2024
@stsrki stsrki closed this as completed Feb 16, 2024
Support automation moved this from ⏳ In Review to ✔ Done Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Critical ☠ Possible bug Type: Bug 🐞 Something isn't working
Projects
Support
  
✔ Done
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants