Commit Graph

2 Commits

Author SHA1 Message Date
zhangheng
f930432ffe fix(tree-select): hoist Row to module scope to prevent row remounts
The row renderer was defined inside VirtualizedTree, giving it a new
component identity on every parent render — react-window then remounted
every row, destroying row DOM/state. Move Row to module scope and pass
flattened/tree/renderNode through react-window's rowProps instead of the
closure.

Verified at runtime: rows render, expand/collapse and select work, and
selection state survives re-renders, with no console errors.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 11:32:18 +08:00
zhangheng
a1565dc18e fix(daily): fix multiselect 2026-05-11 18:28:26 +08:00