Focus editor on new note

This commit is contained in:
Mo Bitar
2020-01-31 10:29:32 -06:00
parent 05e5f311ad
commit 53f6b82dd6
3 changed files with 11 additions and 24 deletions

View File

@@ -527,8 +527,8 @@ function (_PureCtrl) {
this.reloadTagsString();
this.loadPreferences();
if (note.safeText().length === 0 && note.dummy) {
this.focusTitle(100);
if (note.dummy) {
this.focusEditor();
}
if (previousNote && previousNote !== note) {
@@ -1138,13 +1138,6 @@ function (_PureCtrl) {
dontUpdatePreviews: true
});
}
}, {
key: "clickedEditNote",
value: function clickedEditNote() {
this.focusEditor({
delay: 100
});
}
}, {
key: "reloadTagsString",
value: function reloadTagsString() {

File diff suppressed because one or more lines are too long