close note type dropdown after click

This commit is contained in:
zadam 2020-12-17 15:19:22 +01:00
parent f723433970
commit 71bbf2eb16
2 changed files with 5 additions and 1 deletions

View file

@ -91,7 +91,9 @@ export default class NoteTypeWidget extends TabAwareWidget {
.on('click', e => {
const $link = $(e.target).closest('.dropdown-item');
this.save('code', $link.attr('data-mime-type'))
this.save('code', $link.attr('data-mime-type'));
this.$noteTypeButton.dropdown('hide');
});
if (this.note.type === 'code' && this.note.mime === mimeType.mime) {

View file

@ -18,6 +18,8 @@ const TPL = `
}
.search-setting-table {
margin-top: 7px;
margin-bottom: 7px;
width: 100%;
border-collapse: separate;
border-spacing: 10px;