Merge pull request #15285 from atom/ns-ime-workaround-2

Fix IME composition preview for new editors
This commit is contained in:
Nathan Sobo
2017-08-13 15:09:08 -06:00
committed by GitHub

View File

@@ -1670,7 +1670,7 @@ class TextEditorComponent {
if (this.getChromeVersion() === 56) {
process.nextTick(() => {
if (this.compositionCheckpoint) {
if (this.compositionCheckpoint != null) {
const previewText = this.getHiddenInput().value
this.props.model.insertText(previewText, {select: true})
}