mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Changed to !document.documentMode (#7594)
(cherry picked from commit 8397ef58db)
This commit is contained in:
committed by
Paul O’Shannessy
parent
b445b26164
commit
92cfbf16c2
@@ -68,7 +68,7 @@ var doesChangeEventBubble = false;
|
||||
if (ExecutionEnvironment.canUseDOM) {
|
||||
// See `handleChange` comment below
|
||||
doesChangeEventBubble = isEventSupported('change') && (
|
||||
!('documentMode' in document) || document.documentMode > 8
|
||||
!document.documentMode || document.documentMode > 8
|
||||
);
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ if (ExecutionEnvironment.canUseDOM) {
|
||||
// IE10+ fire input events to often, such when a placeholder
|
||||
// changes or when an input with a placeholder is focused.
|
||||
isInputEventSupported = isEventSupported('input') && (
|
||||
!('documentMode' in document) || document.documentMode > 11
|
||||
!document.documentMode || document.documentMode > 11
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user