Skip to content

Commit 92cfbf1

Browse files
tedpowerszpao
authored andcommitted
Changed to !document.documentMode (#7594)
(cherry picked from commit 8397ef5)
1 parent b445b26 commit 92cfbf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderers/dom/client/eventPlugins/ChangeEventPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var doesChangeEventBubble = false;
6868
if (ExecutionEnvironment.canUseDOM) {
6969
// See `handleChange` comment below
7070
doesChangeEventBubble = isEventSupported('change') && (
71-
!('documentMode' in document) || document.documentMode > 8
71+
!document.documentMode || document.documentMode > 8
7272
);
7373
}
7474

@@ -149,7 +149,7 @@ if (ExecutionEnvironment.canUseDOM) {
149149
// IE10+ fire input events to often, such when a placeholder
150150
// changes or when an input with a placeholder is focused.
151151
isInputEventSupported = isEventSupported('input') && (
152-
!('documentMode' in document) || document.documentMode > 11
152+
!document.documentMode || document.documentMode > 11
153153
);
154154
}
155155

0 commit comments

Comments
 (0)