-
Notifications
You must be signed in to change notification settings - Fork 87
Make events work like the normal DOM #9
Comments
Give that man à cookie... Thanks a lot ! |
No problem :D I needed something to do on this five hour long train ride!
|
I can't seem to get Using this (simplified) example:
Any reason why this is? |
@tristanguigue +1. I'm getting the same error (
Perhaps I am missing something. |
Interesting, would you like to open another issue with some steps to reproduce? Once we have tests for it, it'll be a lot easier. |
This involves the following changes which should help with things like #4.
addEventListener
multiple times should allow you to add multiple listeners.On listeners...
Right now I have a dumb approach which removes the previous listener and replaces it because I'm just setting
props.onClick
, for example. This needs to basically delegate to some event system that allows you to add or remove multiple listeners. An abstraction on top of Reacts event system to make it behave like the DOM.On event objects...
This should allow things like
d3.mouse
to work, right now it completely fails, you have to hitd3.event
and work it out yourself.The text was updated successfully, but these errors were encountered: