File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
packages/react-dom/src/events Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -144,16 +144,13 @@ export function trapBubbledEvent(
144
144
if ( ! element ) {
145
145
return null ;
146
146
}
147
+
148
+ // Check if interactive and wrap in interactiveUpdates
147
149
const dispatch = isInteractiveTopLevelEventType ( topLevelType )
148
150
? dispatchInteractiveEvent
149
151
: dispatchEvent ;
150
152
151
- addEventBubbleListener (
152
- element ,
153
- getRawEventName ( topLevelType ) ,
154
- // Check if interactive and wrap in interactiveUpdates
155
- dispatch ,
156
- ) ;
153
+ addEventBubbleListener ( element , getRawEventName ( topLevelType ) , dispatch ) ;
157
154
}
158
155
159
156
/**
@@ -172,16 +169,13 @@ export function trapCapturedEvent(
172
169
if ( ! element ) {
173
170
return null ;
174
171
}
172
+
173
+ // Check if interactive and wrap in interactiveUpdates
175
174
const dispatch = isInteractiveTopLevelEventType ( topLevelType )
176
175
? dispatchInteractiveEvent
177
176
: dispatchEvent ;
178
177
179
- addEventCaptureListener (
180
- element ,
181
- getRawEventName ( topLevelType ) ,
182
- // Check if interactive and wrap in interactiveUpdates
183
- dispatch ,
184
- ) ;
178
+ addEventCaptureListener ( element , getRawEventName ( topLevelType ) , dispatch ) ;
185
179
}
186
180
187
181
function dispatchInteractiveEvent ( nativeEvent ) {
You can’t perform that action at this time.
0 commit comments