palantir/blueprint

`Table2` column header does not re-render correctly on size change

Open

#5,936 建立於 2023年2月10日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)TypeScript (20,263 star) (2,167 fork)batch import
P2Package: tableType: bughelp wanted

描述

Code Sandbox

Link to a minimal repro (fork this code sandbox): https://codesandbox.io/s/gallant-tree-hch623?file=/src/index.tsx

Steps to reproduce

  1. create a basic Table2 with columnHeaderCellRenderer that changes its height depending on some state
  2. update state and observe that the header size is not re-rendered correctly

(even if the dependency's added to the cellRendererDependencies prop)

Actual behavior

Columns header changes its height, but does not reposition any other row or columns.

Expected behavior

Should reposition all cells / headers upon size change.

Possible solution

TBD

貢獻者指南