We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c4d538 commit 258c923Copy full SHA for 258c923
src/input/TextareaInput.js
@@ -153,11 +153,11 @@ TextareaInput.prototype = copyObj({
153
minimal = hasCopyEvent &&
154
(range.to().line - range.from().line > 100 || (selected = cm.getSelection()).length > 1000)
155
let content = minimal ? "-" : selected || cm.getSelection()
156
- this.textarea.value = content
+ if(!this.composing) this.textarea.value = content
157
if (cm.state.focused) selectInput(this.textarea)
158
if (ie && ie_version >= 9) this.hasSelection = content
159
} else if (!typing) {
160
- this.prevInput = this.textarea.value = ""
+ if(!this.composing) this.prevInput = this.textarea.value = ""
161
if (ie && ie_version >= 9) this.hasSelection = null
162
}
163
this.inaccurateSelection = minimal
0 commit comments