diff --git a/packages/react-dom/src/events/accumulateTwoPhaseListeners.js b/packages/react-dom/src/events/accumulateTwoPhaseListeners.js index 16f2dccd39..48350b5084 100644 --- a/packages/react-dom/src/events/accumulateTwoPhaseListeners.js +++ b/packages/react-dom/src/events/accumulateTwoPhaseListeners.js @@ -14,7 +14,6 @@ import {HostComponent} from 'shared/ReactWorkTags'; export default function accumulateTwoPhaseListeners( event: ReactSyntheticEvent, - skipTarget?: boolean, ): void { const phasedRegistrationNames = event.dispatchConfig.phasedRegistrationNames; if (phasedRegistrationNames == null) { @@ -25,12 +24,6 @@ export default function accumulateTwoPhaseListeners( const dispatchInstances = []; let node = event._targetInst; - // If we skip the target, then start the node at the parent - // of the target. - if (skipTarget) { - node = node.return; - } - // Accumulate all instances and listeners via the target -> root path. while (node !== null) { // We only care for listeners that are on HostComponents (i.e.