mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
72.41k stars 6.6k forks source link

Arrow disappears after switching tabs #3563

Open Vanessa219 opened 2 years ago

Vanessa219 commented 2 years ago

Describe the bug Arrow disappears after switching tabs.

To Reproduce Steps to reproduce the behavior:

  1. In tab A, mermaid.init a
  2. Switch tab to B
  3. In tab B, mermaid.init a'
  4. Switch tab to A
  5. Switch tab to B
  6. Arrow disappears

Expected behavior

Arrows do not disappear after switching tabs

Screenshots

https://user-images.githubusercontent.com/970828/193583282-9349c461-437c-478c-b11a-6aa91bd30043.mp4

Code Sample

flowchart TB
  WebSocket --> Game;
  subgraph Game;
    createmap[创建地图] --> nextstep[等待下一 步操作] -->  judge[Jugde];
  end

Desktop (please complete the following information):

JasonChien121 commented 2 years ago

Is this problem solved? I have the same problem.

yoavst commented 1 year ago

Also happens in Graffiti.