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: using rowsPerPageOptions produces error when clicked #6553

Closed
ashens1 opened this issue May 3, 2024 · 2 comments
Closed

Datatable: using rowsPerPageOptions produces error when clicked #6553

ashens1 opened this issue May 3, 2024 · 2 comments
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Milestone

Comments

@ashens1
Copy link

ashens1 commented May 3, 2024

Describe the bug

When using the Datatable rowsPerPageOptions, the dropdown errors out when clicked:
Objects are not valid as a React child (found: object with keys {label, value}). If you meant to render a collection of children, use an array instead.

This is even on the main website! When clicking on the "choose" dropdown it errors

image

image

Reproducer

No response

PrimeReact version

10.6.4

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@ashens1 ashens1 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 3, 2024
@ashens1 ashens1 changed the title Replace_With_Component_Name: Brief_Bug_Description Datatable: using rowsPerPageOptions produces error when clicked May 3, 2024
@Rekl0w
Copy link
Contributor

Rekl0w commented May 3, 2024

Duplicate of #6531. It will be fixed on 10.7 #6551

@melloware melloware added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels May 3, 2024
@melloware melloware added this to the 10.7.0 milestone May 3, 2024
@melloware
Copy link
Member

Please try 10.6.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

No branches or pull requests

3 participants