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: onPageChange and autoplayInterval does not work together #4301

Closed
lokhmakov opened this issue Apr 28, 2023 · 0 comments · Fixed by #4303
Closed

Carousel: onPageChange and autoplayInterval does not work together #4301

lokhmakov opened this issue Apr 28, 2023 · 0 comments · Fixed by #4303
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@lokhmakov
Copy link

Describe the bug

Page always reseted if use onPageChange with autoplayInterval.

Discord discussion: https://discord.com/channels/787967399105134612/787968635414118421/1101442570330067025

Reproducer

https://codesandbox.io/s/primereact-demo-forked-puodit?file=/src/App.js

PrimeReact version

9.3.1

React version

18.x

Language

TypeScript

Build / Runtime

Next.js

Browser(s)

Chrome

Steps to reproduce the behavior

No response

Expected behavior

  • onPageChange return correct page
  • Auto play works without reset page
@lokhmakov lokhmakov added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 28, 2023
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Apr 28, 2023
@melloware melloware self-assigned this Apr 28, 2023
@melloware melloware added this to the 9.4.0 milestone Apr 28, 2023
melloware added a commit to melloware/primereact that referenced this issue Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants