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

Ignore events on text nodes in stack #9000

Merged
merged 1 commit into from Feb 14, 2017

Conversation

sebmarkbage
Copy link
Collaborator

In React Native events can fire on text nodes (on Android at least).

In that case, the current element will be a string and not props. These can not have event handlers on them so we need to bail out so that we don't throw later on.

In React Native events can fire on text nodes (on Android at least).

In that case, the current element will be a string and not props. These
can not have event handlers on them so we need to bail out so that
we don't throw later on.
@sebmarkbage sebmarkbage changed the title Ignore events on text nodes Ignore events on text nodes in stack Feb 14, 2017
@sophiebits
Copy link
Collaborator

Related:

// Safari may fire events on text nodes (Node.TEXT_NODE is 3).

@sebmarkbage sebmarkbage merged commit 5a1e30a into facebook:master Feb 14, 2017
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.

None yet

4 participants