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';
1414
1515export default function accumulateTwoPhaseListeners (
1616 event : ReactSyntheticEvent ,
17- skipTarget ?: boolean ,
1817) : void {
1918 const phasedRegistrationNames = event . dispatchConfig . phasedRegistrationNames ;
2019 if ( phasedRegistrationNames == null ) {
@@ -25,12 +24,6 @@ export default function accumulateTwoPhaseListeners(
2524 const dispatchInstances = [ ] ;
2625 let node = event . _targetInst ;
2726
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-
3427 // Accumulate all instances and listeners via the target -> root path.
3528 while ( node !== null ) {
3629 // We only care for listeners that are on HostComponents (i.e. <div>)
You can’t perform that action at this time.
0 commit comments