primereact icon indicating copy to clipboard operation
primereact copied to clipboard

DataTable: loading prop true hides empty message

Open prevuelta opened this issue 3 months ago • 3 comments

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

prevuelta avatar Sep 16 '25 04:09 prevuelta

@prevuelta, Can I work on this?

sarathkumarsasi avatar Sep 18 '25 07:09 sarathkumarsasi

@sarathkumarsasi yup no probs

prevuelta avatar Sep 18 '25 21:09 prevuelta

Hi @prevuelta, please review and merge the fix when you get time.

sarathkumarsasi avatar Sep 22 '25 06:09 sarathkumarsasi