Skip to content

Change legacy-events plugin nativeEventTarget to allow null#17344

Merged
elicwhite merged 1 commit into
react:masterfrom
elicwhite:flow-allow-null-target
Nov 11, 2019
Merged

Change legacy-events plugin nativeEventTarget to allow null#17344
elicwhite merged 1 commit into
react:masterfrom
elicwhite:flow-allow-null-target

Conversation

@elicwhite

Copy link
Copy Markdown
Contributor

React Native is changing the event target to be a react element instance instead of a reactTag. We pull this element instance off of the fiber, which might be null, thus the target might now be null.

It looks like the only thing that uses the target is SyntheticEvent which just sets it on the event:

https://github.com/facebook/react/blob/6cff70a740d1e6ad10070ebf88514bd3a49d0f0d/packages/legacy-events/SyntheticEvent.js#L93-L95

@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3daa736:

Sandbox Source
mutable-grass-i9y10 Configuration

@sizebot

sizebot commented Nov 11, 2019

Copy link
Copy Markdown

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 3daa736

@sizebot

sizebot commented Nov 11, 2019

Copy link
Copy Markdown

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 3daa736

@elicwhite
elicwhite merged commit 01bce8c into react:master Nov 11, 2019
elicwhite added a commit to elicwhite/react that referenced this pull request Dec 19, 2019
elicwhite added a commit to elicwhite/react that referenced this pull request Jan 8, 2020
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
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