primereact icon indicating copy to clipboard operation
primereact copied to clipboard

DataTable: The height of the DataTable component becomes 0 when using virtualScrollerOptions

Open liyifeizzz opened this issue 2 months ago • 0 comments

Describe the bug

When the style of the outer div of the DataTable changes from display: none to display: block, the height of the DataTable is 0.

Reproducer

https://stackblitz.com/edit/mqjupcpd-m4ezspg7?file=src%2FApp.jsx,package.json

System Information

System:
    OS: Windows 10 10.0.19045
    CPU: (20) x64 Intel(R) Core(TM) i5-14600K
    Memory: 29.76 GB / 63.70 GB
Binaries:
    Node: 22.16.0 - D:\node.js\node.EXE
    npm: 10.9.2 - D:\node.js\npm.CMD
    pnpm: 10.5.2 - D:\node.js\pnpm.CMD
Browsers:
    Chrome: 141.0.7390.108
    Edge: Chromium (140.0.3485.54)
npmPackages:
    primereact: ^10.9.7 => 10.9.7
    react: ^18.3.1 => 18.3.1
    tailwindcss: ^3.4.18 => 3.4.18

Steps to reproduce the behavior

No response

Expected behavior

No response

liyifeizzz avatar Oct 30 '25 03:10 liyifeizzz