dillon1000/react

Commit

Ignore event listener extraction on numeric text components (#9194)

In ReactDOM we don't dispatch events in the synthetic event system on to
text nodes. We back up one to the element before dispatching.

In React Native we don't do that. The iOS native side doesn't dispatch on
the text nodes but only the parent. The Android native side however does
dispatch on text nodes.

We already covered this for strings, but current element in Stack can be
a number if it is numeric text content.
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/native/__tests__/ReactNativeEvents-test.js ModifiedM src/renderers/shared/shared/event/EventPluginHub.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…