close down dropdown menus on click + smaller tweaks

This commit is contained in:
zadam
2020-08-28 14:52:38 +02:00
parent 9873dd1242
commit 8259b4a32c
7 changed files with 13 additions and 7 deletions

View File

@@ -114,6 +114,9 @@ export default class NoteActionsWidget extends TabAwareWidget {
this.$unprotectButton = this.$widget.find(".unprotect-button");
this.$unprotectButton.on('click', () => protectedSessionService.protectNote(this.noteId, false, false));
this.$widget.on('click', '.dropdown-item',
() => this.$widget.find('.dropdown-toggle').dropdown('toggle'));
}
refreshWithNote(note) {