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

onClick events not firing correctly #50

Closed
tsaockham opened this issue Mar 26, 2021 · 2 comments
Closed

onClick events not firing correctly #50

tsaockham opened this issue Mar 26, 2021 · 2 comments

Comments

@tsaockham
Copy link

Hello, when I test with both chrome and Firefox on a mac, with the following code, I don't seem to be getting a consistent onClick event, nor does the arrow head fire an event. Am I doing something wrong? Any thoughts?

https://codesandbox.io/s/xarrows-onclick-issue-z8lgv?file=/src/App.js

Thank you very much! excellent library apart from this issue.

@Eliav2
Copy link
Owner

Eliav2 commented Mar 27, 2021

see: https://codesandbox.io/s/xarrows-onclick-issue-forked-twx1v?file=/src/App.js
you need to pass pointerEvents: "all" to the arrowhead(this was in comment for some reason and I'm not sure why). I've changed it in the dev branch to be the default behavior so in the next release it will be the default.

@tsaockham
Copy link
Author

Works great, thank!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants