fixup 8ca7c363: focus() must be the last action
This commit is contained in:
parent
82651ed6cd
commit
15c98bac9e
|
@ -49,7 +49,6 @@ function createSourceEditor(style) {
|
||||||
const cm = CodeMirror.fromTextArea($('#sections textarea'));
|
const cm = CodeMirror.fromTextArea($('#sections textarea'));
|
||||||
// too many functions depend on this global
|
// too many functions depend on this global
|
||||||
editors.push(cm);
|
editors.push(cm);
|
||||||
cm.focus();
|
|
||||||
|
|
||||||
// draw metas info
|
// draw metas info
|
||||||
updateMeta();
|
updateMeta();
|
||||||
|
@ -60,6 +59,9 @@ function createSourceEditor(style) {
|
||||||
initLint();
|
initLint();
|
||||||
initLinterSwitch();
|
initLinterSwitch();
|
||||||
|
|
||||||
|
// focus must be the last action, otherwise the style is duplicated on saving
|
||||||
|
cm.focus();
|
||||||
|
|
||||||
function initAppliesToLineWidget() {
|
function initAppliesToLineWidget() {
|
||||||
const PREF_NAME = 'editor.appliesToLineWidget';
|
const PREF_NAME = 'editor.appliesToLineWidget';
|
||||||
const widget = createAppliesToLineWidget(cm);
|
const widget = createAppliesToLineWidget(cm);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user