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

Make enterleave plugin not depend on window level listener #2066

Closed
wants to merge 1 commit into from

Conversation

chenglou
Copy link
Contributor

Upcoming #2050 Will break this, so preventively fixing this independently. Tested on both that branch (works) and master (works, except for the case of moving into Comp from html, in which case this will have a duplicate enter, since one extra mouseout is captured from html).

@zpao
Copy link
Member

zpao commented Aug 19, 2014

@jordwalke Can you take a quick look. This seems fine but you may have some other cases you had considered somewhere in your brain.

return null;
}

if (topLevelType === topLevelTypes.topMouseOver) {
// Mouse event fromElement/toElement for IE.
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does this comment mean?

@sophiebits
Copy link
Collaborator

Does this work properly if you have non-React children in a React root (perhaps from dangerouslySetInnerHTML)?

Preventively fixing this independently. Tested on both that branch (works) and master (works, except for the case of moving into Comp from `html`, in which case this will have a duplicate `enter`, since one extra mouseout is captured from `html`).
@chenglou
Copy link
Contributor Author

Good catch, thanks. Updated.

@sebmarkbage
Copy link
Collaborator

Tentatively accepted, assuming we also do the other change. Not sure we will yet.

@sophiebits
Copy link
Collaborator

We're not doing the other change.

@sophiebits sophiebits closed this Aug 20, 2015
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.

5 participants