From 8fa8bf36e926f5baef92b51494c5b883f4f7a676 Mon Sep 17 00:00:00 2001 From: Butch Marshall Date: Wed, 13 Jul 2016 13:30:45 +0000 Subject: [PATCH] Issue #7269 Microsoft Edge exposes TextInput event, but it's not useful either. --- .../dom/client/eventPlugins/BeforeInputEventPlugin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderers/dom/client/eventPlugins/BeforeInputEventPlugin.js b/src/renderers/dom/client/eventPlugins/BeforeInputEventPlugin.js index 794e13661d2e8..de8b96acac92f 100644 --- a/src/renderers/dom/client/eventPlugins/BeforeInputEventPlugin.js +++ b/src/renderers/dom/client/eventPlugins/BeforeInputEventPlugin.js @@ -36,11 +36,13 @@ if (ExecutionEnvironment.canUseDOM && 'documentMode' in document) { // Webkit offers a very useful `textInput` event that can be used to // directly represent `beforeInput`. The IE `textinput` event is not as // useful, so we don't use it. +// Note: Microsoft Edge exposes TextEvent but it's also not useful var canUseTextInputEvent = ( ExecutionEnvironment.canUseDOM && 'TextEvent' in window && !documentMode && - !isPresto() + !isPresto() && + !/\bEdge\/\d/.test(navigator.userAgent) ); // In IE9+, we have access to composition events, but the data supplied