#4500·xyflow

expandParent doesn't work correctly in two level subflow

Author: avatar5555555Created Jul 31, 2024Updated Jul 8, 2026
Labelsreacttopic:subflowsnext major

What platform were you using when you found the bug?

  • React Flow / Svelte Flow version: 12.0.4
  • Browser and version: Chrome 127.0.6533.73 (Official Build) (arm64)
  • OS and version: macOS Sonoma 14.6 (23G80)

Live code example

Example

Describe the Bug

Top level group node doesn't update its size if move grandchild

Steps to reproduce the bug or issue

  1. Go to example
  2. Drag "child node 1" outside of its grandparent
  3. Check grandparent size (bug)
  4. Drag parent node - grandparent size is updated

Expected behavior

After dragging the node all parents size should be updated

Screenshots or Videos

https://github.com/user-attachments/assets/aad9fead-6eae-45ab-a2fd-3d828e48ec68

Additional context

No response