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

Class diagrams: Only first self-reference is rendered #6034

Open
h0lg opened this issue Nov 7, 2024 · 1 comment
Open

Class diagrams: Only first self-reference is rendered #6034

h0lg opened this issue Nov 7, 2024 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@h0lg
Copy link

h0lg commented Nov 7, 2024

Description

When I add more than one self-reference to a node on a class diagram, only the last one is rendered.

Steps to reproduce

Create more than one self-reference for any node.

Screenshots

No response

Code Sample

classDiagram
classG <-- classG : ref1
classG <-- classG : ref2

on https://mermaid.js.org/syntax/classDiagram.html :

image

Setup

  • Mermaid version: 11.4.0
  • Browser and Version: Chrome
@h0lg h0lg added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Nov 7, 2024
@h0lg
Copy link
Author

h0lg commented Nov 7, 2024

The Github renderer seems not to have an issue with this:

classDiagram
classG <-- classG : ref1
classG <-- classG : ref2
Loading

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