File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/react-dom/src/events Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function isEventSupported(eventNameSuffix: string): boolean {
33
33
if ( ! isSupported ) {
34
34
const element = document . createElement ( 'div' ) ;
35
35
element . setAttribute ( eventName , 'return;' ) ;
36
- isSupported = typeof element [ eventName ] === 'function' ;
36
+ isSupported = typeof ( element : any ) [ eventName ] === 'function' ;
37
37
}
38
38
39
39
return isSupported ;
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ function extractEvents(
62
62
// Firefox creates a keypress event for function keys too. This removes
63
63
// the unwanted keypress events. Enter is however both printable and
64
64
// 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 ) {
66
66
return;
67
67
}
68
68
/* falls through */
You can’t perform that action at this time.
0 commit comments