mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix note title refreshing with old state when user quickly skips to content and starts editing, closes #2566
This commit is contained in:
parent
c8884f1917
commit
a97a7cdcdd
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user