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

Remove IE8 event.target polyfill via srcElement #11515

Merged
merged 1 commit into from
Jan 5, 2018

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