Skip to content

Commit 65c1377

Browse files
authored
1 parent cd9046f commit 65c1377

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-dom/src/events/isEventSupported.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function isEventSupported(eventNameSuffix: string): boolean {
3333
if (!isSupported) {
3434
const element = document.createElement('div');
3535
element.setAttribute(eventName, 'return;');
36-
isSupported = typeof element[eventName] === 'function';
36+
isSupported = typeof (element: any)[eventName] === 'function';
3737
}
3838

3939
return isSupported;

packages/react-dom/src/events/plugins/ModernSimpleEventPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function extractEvents(
6262
// Firefox creates a keypress event for function keys too. This removes
6363
// the unwanted keypress events. Enter is however both printable and
6464
// non-printable. One would expect Tab to be as well (but it isn't).
65-
if (getEventCharCode(nativeEvent) === 0) {
65+
if (getEventCharCode(((nativeEvent: any): KeyboardEvent)) === 0) {
6666
return;
6767
}
6868
/* falls through */

0 commit comments

Comments
 (0)