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

Data Table: Rows not rendering #7642

Closed
scooby359 opened this issue Jan 23, 2025 · 3 comments
Closed

Data Table: Rows not rendering #7642

scooby359 opened this issue Jan 23, 2025 · 3 comments
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@scooby359
Copy link

Describe the bug

Since updating to PrimeReact 10.9.1, we have a DataTable that has broken. The table column header does not show (CSS seems to have no height as this can be altered to make it show), and the table body has no content rendered.

Previously worked in v10.8.5, and works if we rollback to that version.

Note that the data is being returned from the server, the console logs show that the data is being passed to the DataTable, and the table paginator is updating with the correct page count.

Expected Output (As shown in v10.8.5):

Image

Broken state (from v10.9.1):

Image

The virtual scroller CSS can be modified to give it height, which shows the header row:

Image

However the table body node is empty:

Image

Reproducer

No response

System Information

System:
    OS: Windows 11 10.0.26100
    CPU: (8) x64 Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz
    Memory: 3.94 GB / 31.61 GB
  Binaries:
    Node: 20.18.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.12.3 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (131.0.2903.99)
    Internet Explorer: 11.0.26100.1882
  npmPackages:
    primereact: 10.9.1 => 10.9.1
    react: ^18.2.0 => 18.3.1

Steps to reproduce the behavior

No response

Expected behavior

Expect the data table to be populated with data and the column headers to be visible.

@scooby359 scooby359 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 23, 2025
@sja-cslab
Copy link
Contributor

You got the latest theme changes?
We need a reproducer for your problem.

@scooby359
Copy link
Author

scooby359 commented Jan 24, 2025

@melloware
Copy link
Member

@scooby359 i think its fixed with 10.9.2 I just changed your stackblitx to 10.9.2 and its working: https://stackblitz.com/edit/vitejs-vite-gafma1hx?file=package.json

@melloware melloware added this to the 10.9.2 milestone Jan 24, 2025
@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 Jan 24, 2025
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

3 participants