Skip to content

Commit a7f0119

Browse files
authored
Use boolean assertion for documentMode check (facebook#10032)
1 parent b1d52b6 commit a7f0119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ if (ExecutionEnvironment.canUseDOM) {
156156

157157
isInputEventSupported =
158158
isEventSupported('input') &&
159-
(!('documentMode' in document) || document.documentMode > 9);
159+
(!document.documentMode || document.documentMode > 9);
160160
}
161161

162162
/**

0 commit comments

Comments
 (0)