mirror of
https://github.com/atom/atom.git
synced 2026-02-17 01:51:54 -05:00
Explicitly compare compositionCheckpoint against null, since it can be 0
This commit is contained in:
@@ -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})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user