-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 event and react component #717
Comments
I am closing this "issue" as i decided to use Dagre-D3 directly instead of Mermaid. This makes it easier to intercept a node click event within my React component. |
This is the working react component I come up with just to test the integration with version ^8.0.0-rc.8:
|
The above works in codesandbox but not when I try to incorporate it into my reactjs code for my webapp |
Had to do the following :
|
@mrkchang Hey! You're commenting in an old closed issue. Feel free to create a new issue if you found a bug, need help, want to request a feature or anything! |
I'm trying to make a react component that uses Mermaid just like this but that will allow the click event to be used.
I tried the solution found here without success.
Here is what i got:
Which is called from a parent react component just like that:
The FlowChart displays fine but the "Design" node that is clickable will not trigger the myAction function once clicked.
Help would be appreciated.
The text was updated successfully, but these errors were encountered: