Skip to content

Commit

Permalink
Maybe fix Flow
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Sep 25, 2020
1 parent 1da73cb commit db037bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-dom/src/events/plugins/SimpleEventPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function extractEvents(
return;
}
let SyntheticEventCtor = SyntheticEvent;
let reactEventType = domEventName;
let reactEventType: DOMEventName = domEventName;
switch (domEventName) {
case 'keypress':
// Firefox creates a keypress event for function keys too. This removes
Expand Down Expand Up @@ -172,7 +172,7 @@ function extractEvents(
// Intentionally create event lazily.
const event = new SyntheticEventCtor(
reactName,
reactEventType,
((reactEventType: any): string),
null,
nativeEvent,
nativeEventTarget,
Expand Down Expand Up @@ -203,7 +203,7 @@ function extractEvents(
// Intentionally create event lazily.
const event = new SyntheticEventCtor(
reactName,
reactEventType,
((reactEventType: any): string),
null,
nativeEvent,
nativeEventTarget,
Expand Down

0 comments on commit db037bb

Please sign in to comment.