fix repeated invocation of actions in note actions dropdown, closes #2255

This commit is contained in:
zadam
2021-10-21 20:53:35 +02:00
parent 3b551e3e4d
commit a434aa113d
3 changed files with 9 additions and 9 deletions

View File

@@ -57,7 +57,7 @@ export default class NoteActionsWidget extends NoteContextAwareWidget {
this.$importNoteButton = this.$widget.find('.import-files-button');
this.$importNoteButton.on("click", () => import('../../dialogs/import.js').then(d => d.showDialog(this.noteId)));
this.$widget.on('click', '.dropdown-item', () => this.$widget.find('.dropdown-menu').dropdown('toggle'));
this.$widget.on('click', '.dropdown-item', () => this.$widget.find("[data-toggle='dropdown']").dropdown('toggle'));
this.$openNoteExternallyButton = this.$widget.find(".open-note-externally-button");
}