Skip to content

Run the unmounted-touch responder test with both dispatch systems (#59545) - #59545

Merged
meta-codesync[bot] merged 2 commits into
react:mainfrom
rubennorte:export-D127828380
Oct 27, 2026
Merged

meta-codesync[bot] merged 2 commits into
react:mainfrom
rubennorte:export-D127828380

Conversation

@rubennorte

@rubennorte rubennorte commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Summary:

Remove the flag-dependent skip from the Fantom regression test for a touched view unmounting before its touch ends. Fabric now forwards native events with a null target, so both dispatch systems must release the stale responder and grant the next touch.

Keep the existing enableNativeEventTargetEventDispatching:* test matrix and remove the unused feature-flag import and obsolete TODO.

Changelog: [Internal]


landed-with-radar-review

Differential Revision: D127828380

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 27, 2026
@meta-codesync

meta-codesync Bot commented Oct 27, 2026

Copy link
Copy Markdown

@rubennorte has exported this pull request. If you are a Meta employee, you can view the originating Diff in D127828380.

rubennorte added a commit to rubennorte/react-native that referenced this pull request Oct 27, 2026
…act#59545)

Summary:

Remove the flag-dependent skip from the Fantom regression test for a touched view unmounting before its touch ends. Fabric now forwards native events with a null target, so both dispatch systems must release the stale responder and grant the next touch.

Keep the existing `enableNativeEventTargetEventDispatching:*` test matrix and remove the unused feature-flag import and obsolete TODO.

Changelog: [Internal]

Differential Revision: D127828380
@meta-codesync meta-codesync Bot changed the title Run the unmounted-touch responder test with both dispatch systems Run the unmounted-touch responder test with both dispatch systems (#59545) Oct 27, 2026
Summary:

Regenerate the development, production, and profiling Fabric renderer bundles from React revision `dc9aed364252a34966f4f2c4a98272317fdddb60`. Native events whose view has unmounted now reach the responder system even when their event target is null.

This renderer-only update retains React version `19.3.0` and leaves package metadata and dependency versions unchanged.

Changelog:
[General][Fixed] - Fix lost taps after a touched view unmounts when EventTarget event dispatching is enabled

Reviewed By: javache

Differential Revision: D127828293
…act#59545)

Summary:

Remove the flag-dependent skip from the Fantom regression test for a touched view unmounting before its touch ends. Fabric now forwards native events with a null target, so both dispatch systems must release the stale responder and grant the next touch.

Keep the existing `enableNativeEventTargetEventDispatching:*` test matrix and remove the unused feature-flag import and obsolete TODO.

Changelog: [Internal]

___

landed-with-radar-review

Differential Revision: D127828380
@meta-codesync
meta-codesync Bot merged commit eaf4c26 into react:main Oct 27, 2026
59 of 60 checks passed
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @rubennorte in eaf4c26

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 27, 2026
usama-liaqat pushed a commit to usama-liaqat/react-native that referenced this pull request Nov 14, 2026
…act#59545)

Summary:

Remove the flag-dependent skip from the Fantom regression test for a touched view unmounting before its touch ends. Fabric now forwards native events with a null target, so both dispatch systems must release the stale responder and grant the next touch.

Keep the existing `enableNativeEventTargetEventDispatching:*` test matrix and remove the unused feature-flag import and obsolete TODO.

Changelog: [Internal]

___

landed-with-radar-review

Differential Revision: D127828380

Pull Request resolved: react#59545
rubennorte added a commit to rubennorte/react-native that referenced this pull request Dec 2, 2026
…act#59545)

Summary:

Remove the flag-dependent skip from the Fantom regression test for a touched view unmounting before its touch ends. Fabric now forwards native events with a null target, so both dispatch systems must release the stale responder and grant the next touch.

Keep the existing `enableNativeEventTargetEventDispatching:*` test matrix and remove the unused feature-flag import and obsolete TODO.

Changelog: [Internal]

___

landed-with-radar-review

Differential Revision: D127828380

Pull Request resolved: react#59545

(cherry picked from commit eaf4c26)
rubennorte added a commit to rubennorte/react-native that referenced this pull request Dec 3, 2026
…act#59545)

Summary:

Remove the flag-dependent skip from the Fantom regression test for a touched view unmounting before its touch ends. Fabric now forwards native events with a null target, so both dispatch systems must release the stale responder and grant the next touch.

Keep the existing `enableNativeEventTargetEventDispatching:*` test matrix and remove the unused feature-flag import and obsolete TODO.

Changelog: [Internal]

___

landed-with-radar-review

Differential Revision: D127828380

Pull Request resolved: react#59545

(cherry picked from commit eaf4c26)
rubennorte added a commit that referenced this pull request Dec 3, 2026
…60467)

* Process responder events for touches whose target unmounted (#59522)

Summary:
With `enableNativeEventTargetEventDispatching` on, a touch that ends after its view unmounted never reaches the responder, so the old responder sticks around and `trackedTouchCount` stays one too high, which drops the next tap. `processResponderEvent` already handles a null target, but `dispatchNativeEvent` only accepts a non-null one and would crash in `dispatchTrustedEvent` if it got null. It now takes `EventTarget | null` and returns right after the responder step when there is no target. The renderer's `dispatchEvent` (`ReactFabricEventEmitter.js` in react/react) still skips the call for a null target, so that guard has to go too before the bug is fully fixed, and this change needs to land first.

Fixes #59519

[GENERAL] [FIXED] - Fix the responder not being released when a touch ends after its view unmounted

Pull Request resolved: #59522

Test Plan: Added a Fantom test to `ResponderEventTarget-itest.js` that grants the responder, sends `topTouchEnd` with a null target through `dispatchNativeEvent`, and checks that the release fires and the next touch is granted again. I couldn't build the Fantom runner locally, so I also ran the null-target case as a throwaway Jest test: on `main` it throws `TypeError: Cannot read properties of null` from `dispatchTrustedEvent`, and it passes with this change. `flow check`, eslint and prettier are clean.

Reviewed By: javache

Differential Revision: D127796330

Pulled By: rubennorte

fbshipit-source-id: 3c3547998b3b079a540e8cdf8e904ee95a855515
(cherry picked from commit f754dbd)

* Sync OSS Fabric renderers for null-target native events (#59546)

Summary:

Regenerate the development, production, and profiling Fabric renderer bundles from React revision `dc9aed364252a34966f4f2c4a98272317fdddb60`. Native events whose view has unmounted now reach the responder system even when their event target is null.

This renderer-only update retains React version `19.3.0` and leaves package metadata and dependency versions unchanged.

Changelog:
[General][Fixed] - Fix lost taps after a touched view unmounts when EventTarget event dispatching is enabled

Reviewed By: javache

Differential Revision: D127828293

Pull Request resolved: #59546

(cherry picked from commit eb90a8d)

* Run the unmounted-touch responder test with both dispatch systems (#59545)

Summary:

Remove the flag-dependent skip from the Fantom regression test for a touched view unmounting before its touch ends. Fabric now forwards native events with a null target, so both dispatch systems must release the stale responder and grant the next touch.

Keep the existing `enableNativeEventTargetEventDispatching:*` test matrix and remove the unused feature-flag import and obsolete TODO.

Changelog: [Internal]

___

landed-with-radar-review

Differential Revision: D127828380

Pull Request resolved: #59545

(cherry picked from commit eaf4c26)

---------

Co-authored-by: lazerg <lazerg2@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants