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 08f1c52 commit 5937af2Copy full SHA for 5937af2
client/modules/IDE/components/Editor.jsx
@@ -280,10 +280,10 @@ class Editor extends React.Component {
280
} else if (mode === 'htmlmixed') {
281
this._cm.doc.setValue(beautifyHTML(this._cm.doc.getValue(), beautifyOptions));
282
}
283
- setImmediate(() => {
+ setTimeout(() => {
284
this._cm.focus();
285
this._cm.doc.setCursor({ line: currentPosition.line, ch: currentPosition.ch + INDENTATION_AMOUNT });
286
- });
+ }, 0);
287
288
289
initializeDocuments(files) {
0 commit comments