fix: focus new note on create (#791)

This commit is contained in:
Mo
2021-12-27 15:42:48 -06:00
committed by GitHub
parent 07678bbd32
commit c9e448c7b6
2 changed files with 8 additions and 6 deletions

View File

@@ -183,6 +183,12 @@ export class EditorViewCtrl extends PureViewCtrl<unknown, EditorState> {
if (this.note.dirty) {
this.showSavingStatus();
}
if (this.editor.isTemplateNote) {
this.$timeout(() => {
this.focusTitle();
});
}
}
private onNoteChanges(note: SNNote, source: PayloadSource): void {