mermaid-js / mermaid-live-editor

Edit, preview and share mermaid charts/diagrams. New implementation of the live editor.
https://mermaid.live
MIT License
4.3k stars 654 forks source link

No transition from State to Substate #1491

Open kkubicki opened 4 months ago

kkubicki commented 4 months ago

Describe the bug Sometimes visualization of state machine does not contain transition from state to substate

To Reproduce Link to Live Editor: https://mermaid.live/edit#pako:eNpFj8FugzAQRH_F2l5DKHZKEh8qhbTHntpT5csGG2wVbGTsSBHi32uomtz2zcyudiaonVTAYQwY1JvB1mOfXamwq0BOZCIVmYV9evB54VOWvVacfBWUCVslOCegbCcsbKBXvkcj09lJWEIEBK16JYCnUaL_ESDsnHIYg_u82Rp48FFtwLvYauANdmOiOMjHT3d1QPvt3IOVNMH5j78Wa5n_zffVuQc7h1IlnCDchiXcmjGkcO1sY9pFj75Lsg5hGHmeL_a2NUHHy7Z2fT4aqdEHfT2WeUnLA1Kmyj3DF8ZkfSmOh4buikbunwuKMM_zL5NmcRs

Steps to reproduce the behavior:

stateDiagram-v2
state A { B }
#state A { C }
A-->B: T123
B-->C: T234

Uncommenting line 3 makes transition T123 dissapear

Expected behavior Transition from state to substate is shown