Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State diagram containing cyclic edges in internal composite state does not render #5255

Open
fwalch opened this issue Jan 31, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@fwalch
Copy link

fwalch commented Jan 31, 2024

Description

A cyclic edge on a composite state works:

stateDiagram-v2
A --> A
state A {
  B
}
stateDiagram-v2
A --> A
state A {
  B
}
Loading

A cyclic edge on an internal state works as well:

stateDiagram-v2
A --> A
state A {
  B --> B
}
stateDiagram-v2
A --> A
state A {
  B --> B
}
Loading

A cyclic edge on an internal composite state does not:

stateDiagram-v2
A --> A
state A {
  B --> B
  state B {
    C
  }
}
stateDiagram-v2
A --> A
state A {
  B --> B
  state B {
    C
  }
}
Loading

Steps to reproduce

Paste the code above into the live editor. Instead of rendering the state diagram, the canvas stays blank. The console shows view fail TypeError: a is undefined.

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version: v10.7.0 (live editor)
  • Browser and Version: Firefox 121

Suggested Solutions

No response

Additional Context

Could be related to #3304.

@fwalch fwalch added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant