File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
packages/react-dom/src/events Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import {HostComponent} from 'shared/ReactWorkTags';
14
14
15
15
export default function accumulateTwoPhaseListeners (
16
16
event : ReactSyntheticEvent ,
17
- skipTarget ?: boolean ,
18
17
) : void {
19
18
const phasedRegistrationNames = event . dispatchConfig . phasedRegistrationNames ;
20
19
if ( phasedRegistrationNames == null ) {
@@ -25,12 +24,6 @@ export default function accumulateTwoPhaseListeners(
25
24
const dispatchInstances = [ ] ;
26
25
let node = event . _targetInst ;
27
26
28
- // If we skip the target, then start the node at the parent
29
- // of the target.
30
- if ( skipTarget ) {
31
- node = node . return ;
32
- }
33
-
34
27
// Accumulate all instances and listeners via the target -> root path.
35
28
while ( node !== null ) {
36
29
// We only care for listeners that are on HostComponents (i.e. <div>)
You can’t perform that action at this time.
0 commit comments