mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
small fixes
This commit is contained in:
parent
45516fa7b4
commit
0f05d6258e
@ -67,6 +67,13 @@ export default class NoteListWidget extends TabAwareWidget {
|
|||||||
await noteListRenderer.renderList();
|
await noteListRenderer.renderList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async refresh() {
|
||||||
|
this.$content.empty();
|
||||||
|
this.shownNoteId = null;
|
||||||
|
|
||||||
|
await super.refresh();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We have this event so that we evaluate intersection only after note detail is loaded.
|
* We have this event so that we evaluate intersection only after note detail is loaded.
|
||||||
* If it's evaluated before note detail then it's clearly intersected (visible) although after note detail load
|
* If it's evaluated before note detail then it's clearly intersected (visible) although after note detail load
|
||||||
|
@ -58,6 +58,10 @@ export default class QuickSearchWidget extends BasicWidget {
|
|||||||
this.$dropdownMenu.find('.dropdown-item:first').focus();
|
this.$dropdownMenu.find('.dropdown-item:first').focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
utils.bindElShortcut(this.$searchString, 'esc', () => {
|
||||||
|
this.$dropdownToggle.dropdown('hide');
|
||||||
|
});
|
||||||
|
|
||||||
return this.$widget;
|
return this.$widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user