palantir/blueprint

Table not rendering additional rows if min-height is greater than the current table height

開放

#5,101 建立於 2022年1月18日

 (1 則留言) (0 個反應) (0 位負責人)TypeScript (2,167 個分叉)batch import
P2Package: tableType: bughelp wanted

倉庫指標

星標
 (20,263 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Environment

  • Package version(s): 3.9.13
  • Operating System: MacOS
  • Browser name and version: Chrome 97.0.4692.71

Code Sandbox

https://codesandbox.io/s/serverless-snow-4dhos

Steps to reproduce

  1. Set the min-height on the table to something like 30vh
  2. Start with an empty data set
  3. Add rows one at a time with some external process (for me it was socket.io, the sandbox is just adding them in a loop)

Actual behavior

Rows 1 to 6 are displayed as expected, then further rows are not rendered until you click and scroll down with a mouse or until the row height exceeds the min-height css setting

Expected behavior

New rows should be rendered regardless of min-height css setting.

Workaround

Seems to be fine if min-height css setting is not used and the table must grow in height for each added row.

Also I don't seem to see this issue if only height css setting is used.

貢獻者指南