From 76582eeb03ab5c1ddf953066bef922810f1001bb Mon Sep 17 00:00:00 2001
From: Sungho Kim <sungho-kim@nhnent.com>
Date: Fri, 17 Jul 2015 15:58:34 +0900
Subject: [PATCH] [textarea input] Don't disable poll() when input has
 selection during composing

---
 lib/codemirror.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/codemirror.js b/lib/codemirror.js
index 8246529c6..22082263b 100644
--- a/lib/codemirror.js
+++ b/lib/codemirror.js
@@ -1398,7 +1398,7 @@
       // will be the case when there is a lot of text in the textarea,
       // in which case reading its value would be expensive.
       if (this.contextMenuPending || !cm.state.focused ||
-          (hasSelection(input) && !prevInput) ||
+          (hasSelection(input) && !prevInput && !this.composing) ||
           isReadOnly(cm) || cm.options.disableInput || cm.state.keySeq)
         return false;
 
-- 
GitLab