fix note title refreshing with old state when user quickly skips to content and starts editing, closes #2566

This commit is contained in:
zadam 2022-01-17 20:54:57 +01:00
parent c8884f1917
commit a97a7cdcdd

View file

@ -52,7 +52,11 @@ export default class NoteTitleWidget extends NoteContextAwareWidget {
this.$noteTitle.on('input', () => this.spacedUpdate.scheduleUpdate());
this.$noteTitle.on('blur', () => { this.deleteNoteOnEscape = false });
this.$noteTitle.on('blur', () => {
this.spacedUpdate.updateNowIfNecessary();
this.deleteNoteOnEscape = false;
});
utils.bindElShortcut(this.$noteTitle, 'esc', () => {
if (this.deleteNoteOnEscape && this.noteContext.isActive()) {