Skip to content

Build your personal knowledge base with Trilium Notes

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

zadama97a7cdcddd7
diff --git a/src/public/app/widgets/note_title.js b/src/public/app/widgets/note_title.js
index a8d5b5efc3..59007faa63 100644
--- a/src/public/app/widgets/note_title.js
+++ b/src/public/app/widgets/note_title.js
@@ -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()) {