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

Datatable: Duplicate events fire in paginatorPosition=both #4095

Closed
nyghub opened this issue Feb 23, 2023 · 0 comments
Closed

Datatable: Duplicate events fire in paginatorPosition=both #4095

nyghub opened this issue Feb 23, 2023 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@nyghub
Copy link

nyghub commented Feb 23, 2023

Hi, I am facing issues with DataTable. When I use lazy (data comes from api), rowsPerPageOptions=[10,20,50,100], paginatorPosition=both,

The onPage event fires twice whenever I change the rowsPerPage in the drop-down. If I remove paginatorPosition=both, then it fires only once.

Also, when it fires twice, noticed the pageCount value is not correct the first time, it is correct the second time.

I am using primereact 9.2.0. React 18.2.0

@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 23, 2023
@melloware melloware changed the title DataTable issue Paginator: Duplicate events fire in paginatorPosition=both Feb 23, 2023
@melloware melloware changed the title Paginator: Duplicate events fire in paginatorPosition=both Datatable: Duplicate events fire in paginatorPosition=both Feb 23, 2023
@mertsincan mertsincan self-assigned this Mar 9, 2023
@mertsincan mertsincan 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 Mar 9, 2023
@mertsincan mertsincan added this to the 9.2.1 milestone Mar 9, 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

No branches or pull requests

2 participants