Skip to content

Conversation

@gaearon
Copy link
Collaborator

@gaearon gaearon commented Nov 10, 2017

Just noticed it seems like srcElement is IE8-only.
Not actually sure we want to do this until we remove the attachEvent() call in EventListener.

Copy link
Contributor

@nhunzaker nhunzaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, 👍

@nhunzaker
Copy link
Contributor

Not actually sure we want to do this until we remove the attachEvent() call in EventListener.

@gaearon Are we able to just remove EventListener.listen and EventListener.capture in ReactEventListener?

https://github.com/facebook/react/blob/master/packages/react-dom/src/events/ReactDOMEventListener.js#L123-L153

I'm personally motivated to get rid of it from some investigation in #11550. The return signature isn't getting used in React at all.

@gaearon
Copy link
Collaborator Author

gaearon commented Nov 21, 2017

Are we able to just remove EventListener.listen and EventListener.capture in ReactEventListener?

Yes, should be fine.

@gaearon gaearon merged commit fe10b8d into facebook:master Jan 5, 2018
yenshih pushed a commit to yenshih/react that referenced this pull request Jan 6, 2018
ManasJayanth pushed a commit to ManasJayanth/react that referenced this pull request Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants