Browse Source
The previous fix skipped the expand animation on initial mount but missed the ResizeObserver path. On remount, trackedSettingsHeightRef resets to 0, and the ResizeObserver sees the full panel height as a delta, adding it to the node height that already includes the panel. Add skipFirstObserveRef: when a node mounts with settings already expanded, the first ResizeObserver callback syncs the tracked height without calling setNodes, preventing the cumulative height growth. https://claude.ai/code/session_01MvD1n4QeXutgwUpKJuDGHahandoff-20260429-1057
1 changed files with 16 additions and 3 deletions
Loading…
Reference in new issue