Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
small fixes
zadam0f05d6258e16
diff --git a/src/public/app/widgets/note_list.js b/src/public/app/widgets/note_list.jsindex f3ac4b4ba9..e61170a332 100644--- a/src/public/app/widgets/note_list.js+++ b/src/public/app/widgets/note_list.js@@ -67,6 +67,13 @@ export default class NoteListWidget extends TabAwareWidget {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.* If it's evaluated before note detail then it's clearly intersected (visible) although after note detail loaddiff --git a/src/public/app/widgets/quick_search.js b/src/public/app/widgets/quick_search.jsindex 7d018994c0..8860c3ba57 100644--- a/src/public/app/widgets/quick_search.js+++ b/src/public/app/widgets/quick_search.js@@ -58,6 +58,10 @@ export default class QuickSearchWidget extends BasicWidget {this.$dropdownMenu.find('.dropdown-item:first').focus();});+ utils.bindElShortcut(this.$searchString, 'esc', () => {+ this.$dropdownToggle.dropdown('hide');+ });+return this.$widget;}