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

Carousel triggerPageEvent and interval issue. #1940

Open
Badabeu1s6 opened this issue Jan 22, 2025 · 2 comments
Open

Carousel triggerPageEvent and interval issue. #1940

Badabeu1s6 opened this issue Jan 22, 2025 · 2 comments

Comments

@Badabeu1s6
Copy link

Hi,
I try to use Carousel with triggerPageEvent option .

i use like this :

    interval={(this.state.dynamicDelay )}
    element={ this.state.currentCarouselElement}
    canMoveNext={true}
    canMovePrev={true}
    triggerPageEvent={(vindex: number) => {this.triggerNextElement(vindex);}}

If i clik on next button , component has expected comportment : trigger nextelement is executed (twice ?), which modidy currentCarouselElement and image changes.
If interval i reached, : trigger nextelement is executed (once ?) , loading component (spin) appears but freez on it.
no error in log.

Something is missing ?

Thanks.

Copy link

Thank you for submitting your first issue to this project.

@Badabeu1s6
Copy link
Author

I've added, breakpoints ,it seams that next page is loaded, and immedialty after loading componentreplace,the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants