mirror of
https://github.com/zadam/trilium.git
synced 2024-11-11 18:08:13 +08: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
1 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,11 @@ export default class NoteTitleWidget extends NoteContextAwareWidget {
|
||||||
|
|
||||||
this.$noteTitle.on('input', () => this.spacedUpdate.scheduleUpdate());
|
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', () => {
|
utils.bindElShortcut(this.$noteTitle, 'esc', () => {
|
||||||
if (this.deleteNoteOnEscape && this.noteContext.isActive()) {
|
if (this.deleteNoteOnEscape && this.noteContext.isActive()) {
|
||||||
|
|
Loading…
Reference in a new issue