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

Click events on graph elements are not working #46

Open
spiess-demos opened this issue Dec 7, 2020 · 2 comments
Open

Click events on graph elements are not working #46

spiess-demos opened this issue Dec 7, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@spiess-demos
Copy link

Binding click events to nodes as described in the mermaidjs docs seems to be either broken or not implemented. As this requires securityLevel at least to be set to loose, i registered the plugin in config.js with:

plugins: [
   [
     'mermaidjs',
     {
       securityLevel: 'loose'
     }
   ]
]

Anyway the click events are not triggered.

@eFrane eFrane added the bug Something isn't working label Dec 7, 2020
@eFrane
Copy link
Owner

eFrane commented Dec 7, 2020

Okay, I looked into this. It seems like the event handlers are lost after rendering the SVG. I'm on it.

@PavelPolyakov
Copy link

hi @eFrane ,

sorry for pinging you. Did you find anything?
I just started to use your beautiful integration today and when I add click like:

click consents href "http://www.github.com" "This is a tooltip for a link"

Then in my console there is an error, and chart is not rendered
image

Let me know if I can help with that.

@spiess-demos did you find a way to add clicks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants