changed setImmediate with setTimeout
This commit is contained in:
parent
08f1c52f96
commit
5937af22f3
1 changed files with 2 additions and 2 deletions
|
@ -280,10 +280,10 @@ class Editor extends React.Component {
|
|||
} else if (mode === 'htmlmixed') {
|
||||
this._cm.doc.setValue(beautifyHTML(this._cm.doc.getValue(), beautifyOptions));
|
||||
}
|
||||
setImmediate(() => {
|
||||
setTimeout(() => {
|
||||
this._cm.focus();
|
||||
this._cm.doc.setCursor({ line: currentPosition.line, ch: currentPosition.ch + INDENTATION_AMOUNT });
|
||||
});
|
||||
}, 0);
|
||||
}
|
||||
|
||||
initializeDocuments(files) {
|
||||
|
|
Loading…
Reference in a new issue