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

Use react/lib/EventListener instead of document.addEventListener #177

Closed
wants to merge 1 commit into from

Conversation

xcatliu
Copy link

@xcatliu xcatliu commented May 8, 2015

document.addEventListener doesn't work on IE8.

Use react/lib/EventListener instead of document.addEventListener will solve this problem.

@dcousens
Copy link
Collaborator

dcousens commented May 9, 2015

@xcatliu please see the CONTRIBUTOR file, you should only edit files in src. Not lib. Please fix.

@JedWatson
Copy link
Owner

The React team has made it clear that using React internals in other packages is not safe; as tempting as it is to reach in and access these utils, we should find a better way.

@dcousens
Copy link
Collaborator

Closing, will open a relevant issue though. @xcatliu please re-open if you rebase and submit a new/different fix.

@dcousens dcousens closed this May 11, 2015
@xcatliu
Copy link
Author

xcatliu commented May 12, 2015

@dcousens @JedWatson
Ok, I'll find a better way. Thanks

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

Successfully merging this pull request may close these issues.

3 participants