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 80e066a commit d5b6a18Copy full SHA for d5b6a18
client/modules/IDE/components/Editor.jsx
@@ -304,10 +304,8 @@ class Editor extends React.Component {
304
} else if (mode === 'htmlmixed') {
305
this._cm.doc.setValue(beautifyHTML(this._cm.doc.getValue(), beautifyOptions));
306
}
307
- setTimeout(() => {
308
- this._cm.focus();
309
- this._cm.doc.setCursor({ line: currentPosition.line, ch: currentPosition.ch + INDENTATION_AMOUNT });
310
- }, 0);
+ this._cm.focus();
+ this._cm.doc.setCursor({ line: currentPosition.line, ch: currentPosition.ch + INDENTATION_AMOUNT });
311
312
313
initializeDocuments(files) {
0 commit comments