Using SfCarousel as a Wizard has issues with event callback parameter

I have blazor Webassembly project with synfusion 29.2.4 version.  I have SfCarousel with 3 CarouselItem. Inside each CarouselItem I have blazor components. I noticed the following behaviour

  1. When page loads first time, all three blazor components are load and all live cycle events are executed. This is OK.
  2. every time I move mouse outside this page and move mouse back, the life cycle events OnParameterSet,
  3. OnAfterRender

  4.  I have sfbutton in blazor component, whenever I move mouse, the life cycle events of all three blazor components run

Attachment: KnowledgeBase_7386b0bf.zip

1 Reply

AK Ashokkumar Karuppasamy Syncfusion Team May 19, 2025 07:05 AM UTC

Hi Tenzing Admin,


Thank you for reaching out to us!


We suggest setting the PauseOnHover property to false, which resolves the issue where lifecycle events such as OnParametersSet and OnAfterRender are triggered every time the mouse is moved outside and then back into the page.

Please find the attached code snippet demonstrating the solution. Let us know if you need any further assistance.

<SfCarousel @ref="carousel" AutoPlay="false" ShowIndicators="false" PauseOnHover="false" ButtonsVisibility="CarouselButtonVisibility.Hidden">
      <CarouselItem >

Regards,
Ashok

Loader.
Up arrow icon