small fixes

This commit is contained in:
zadam 2021-02-05 23:19:43 +01:00
parent 45516fa7b4
commit 0f05d6258e
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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;
} }