Skip to content

DataTable: loading prop true hides empty message #8292

@prevuelta

Description

@prevuelta

Describe the bug

When the loading prop is true for DataTable and there is no data, the empty message is hidden which results in a 0px height for the table body and looks bad.

Reproducer

https://1bgswyyy-ppcxgxge.stackblitz.io

System Information

System:
    OS: macOS 15.6.1
    CPU: (12) arm64 Apple M2 Pro
    Memory: 584.61 MB / 32.00 GB
    Shell: 4.0.2 - /opt/homebrew/bin/fish
  Binaries:
    Node: 24.8.0 - /Users/admprnkt5/.nvm/versions/node/v24.8.0/bin/node
    npm: 11.6.0 - /Users/admprnkt5/.nvm/versions/node/v24.8.0/bin/npm
  Browsers:
    Chrome: 140.0.7339.133
    Safari: 18.6
  npmPackages:
    primereact: ^10.9.7 => 10.9.7 
    react: ^18.2.0 => 18.3.1 
    tailwindcss: ^3.2.4 => 3.4.17

Steps to reproduce the behavior

No response

Expected behavior

No response

Metadata

Metadata

Labels

Type: BugIssue contains a defect related to a specific component.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions