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

Flowchart - Elk Renderer - Tooltips on links don't work #5661

Open
Bitmaximus opened this issue Jul 23, 2024 · 0 comments
Open

Flowchart - Elk Renderer - Tooltips on links don't work #5661

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

Comments

@Bitmaximus
Copy link

Bitmaximus commented Jul 23, 2024

Description

When I add a tooltip to a node, and switch to the elk renderer, a "Syntax Error in Text" error occurs.
Switching back to the default renderer makes the "Syntax Error in Text" error go away (And the graph renders normally, and the tooltip and link function normally.

Steps to reproduce

  1. Add a node A
  2. Add click A href "https://www.example.com" "This is a link"
  3. Verify hyperlink and tooltip function as normal.
  4. Switch renderer in the config object fed to mermaid.initialize() (Or use a directive to do the same)
  5. Bug occurs!

Screenshots

also_not_working
not_working
Working

Code Sample

---html

<pre class="mermaid">
    %%{init: {"flowchart": {"defaultRenderer": "elk"}} }%%
    flowchart LR
        D
        click D href "https://www.github.com" "This is a link"
</pre>

--- Javascript

window.callback = function () {
      alert('A callback was triggered');
};
const config = {
      startOnLoad: true,
      flowchart: { useMaxWidth: true, htmlLabels: true, curve: 'cardinal', defaultRenderer: 'elk' },
      securityLevel: 'loose',
};
mermaid.initialize(config);

Setup

  • Mermaid version: 10.4.0
  • Browser and Version: Chrome 126.0.6478.182 (Official Build) (64-bit)

Suggested Solutions

No response

Additional Context

No response

@Bitmaximus Bitmaximus added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jul 23, 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