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

Get events on mouse's callbacks #88

Closed
j-barata opened this issue Mar 27, 2018 · 3 comments
Closed

Get events on mouse's callbacks #88

j-barata opened this issue Mar 27, 2018 · 3 comments

Comments

@j-barata
Copy link

I can't find any way to retrieve the event occured when "onClick" or "onMouseOver" or "onMouseOut".

I think this could be done in the rendering method of the Node object ?

Something like that : <g ... onClick={(event) => this.handleClick()} ...

What is your opinion ?

@bkrem
Copy link
Owner

bkrem commented Mar 28, 2018

Good point, I'm actually surprised this hasn't come up as a request until now and that I didn't consider forwarding the event up the call chain (as would be done in most cases).

Thank you for bringing this to my attention! Adding it as a prio ticket for the next release.

@bkrem
Copy link
Owner

bkrem commented Mar 28, 2018

Shipped in v1.10.2 🚀

Docs for each event callback have also been updated.

@bkrem bkrem closed this as completed Mar 28, 2018
@j-barata
Copy link
Author

thank you very much for being so fast

@bkrem bkrem removed this from the v1.11 milestone Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants