-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Can not get click event to fire. #306
Comments
Hello Ed! Your example was pretty much ok but for one small omission. You need to pass the element to the bind events function. This helps when you set events for several diagrams.
I hope this helps. |
Great. Thank you very much. |
Thanks Alot, this really help me |
It helped me a lot too ... which does highlight that many of the examples in the documentation is wrong or outdated. Love this project. |
One bug I have noticed is that the ID for a node cannot start with a numeric if you wish the click event to fire.
where as, if you add a letter at the start, then this works:
|
@a1anw2 I have confirmed the bug you reported and I've fixed it. |
…yarn/develop/svelte-3.42.2 chore(deps-dev): bump svelte from 3.42.1 to 3.42.2
I am having a hard time getting any click events to fire in the below simple example. Can you please have a look and advise what I am missing?
The console (chrome) is showing empty bind functions...
The code I am running is here... (I renamed html to txt for upload)
mermaid4.txt
Sincere Thanks,
Ed
The text was updated successfully, but these errors were encountered: