Explicitly compare compositionCheckpoint against null, since it can be 0

This commit is contained in:
Nathan Sobo
2017-08-13 14:03:58 -06:00
parent f82ff9c0d1
commit 38978da0fa

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})
}