Dropdown doesn't hide when clicking bookmark menu item in MUC

This commit is contained in:
JC Brand 2020-06-03 10:48:27 +02:00
parent d325059c28
commit 0f33960d5e

View File

@ -100,10 +100,7 @@ converse.plugins.add('converse-bookmark-views', {
},
toggleBookmark (ev) {
if (ev) {
ev.preventDefault();
ev.stopPropagation();
}
ev?.preventDefault();
const models = _converse.bookmarks.where({'jid': this.model.get('jid')});
if (!models.length) {
this.renderBookmarkForm();