direction inside subgraphs is ignored #6438
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
When using flowchart diagrams, specifying a direction inside a subgraph block is silently ignored. This gives the impression that subgraph direction is supported, but it has no effect on layout.
This is misleading behavior and inconsistent with Mermaid’s syntax expectations.
Steps to reproduce
Use this code in the Mermaid Live Editor:
- Actual Output:
All nodes — including those in the subgraph — are laid out left-to-right:
The subgraph should respect direction TB, resulting in:
A --> B flowing left-to-right
The Group subgraph showing nodes vertically:
Then
E --> F
continues left-to-rightSetup
v11.5.0)
Suggested Solutions
Additional Context
The text was updated successfully, but these errors were encountered: