Skip to content

Commit

Permalink
Fixed an issue #11853 - window.opera=null problem (#11854)
Browse files Browse the repository at this point in the history
  • Loading branch information
alisherdavronov authored and nhunzaker committed Dec 19, 2017
1 parent 247c524 commit faa4218
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-dom/src/events/BeforeInputEventPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const useFallbackCompositionData =
function isPresto() {
const opera = window.opera;
return (
opera !== null &&
typeof opera === 'object' &&
typeof opera.version === 'function' &&
parseInt(opera.version(), 10) <= 12
Expand Down

0 comments on commit faa4218

Please sign in to comment.