Skip to content

Commit faa4218

Browse files
alisherdavronovnhunzaker
authored andcommitted
Fixed an issue #11853 - window.opera=null problem (#11854)
1 parent 247c524 commit faa4218

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const useFallbackCompositionData =
4949
function isPresto() {
5050
const opera = window.opera;
5151
return (
52+
opera !== null &&
5253
typeof opera === 'object' &&
5354
typeof opera.version === 'function' &&
5455
parseInt(opera.version(), 10) <= 12

0 commit comments

Comments
 (0)