Allow three dot menu to be opened on another message...
without closing the first.
This commit is contained in:
parent
1998bf2b64
commit
b9acda1157
1 changed files with 12 additions and 4 deletions
|
|
@ -1740,10 +1740,17 @@ export default {
|
|||
|
||||
showContextMenuForEvent(e) {
|
||||
const event = e.event;
|
||||
this.selectedEvent = event;
|
||||
this.updateRecentEmojis();
|
||||
this.showContextMenu = !this.showContextMenu;
|
||||
this.showContextMenuAnchor = e.anchor;
|
||||
if (this.selectedEvent == event) {
|
||||
this.showContextMenu = !this.showContextMenu;
|
||||
} else {
|
||||
this.showContextMenu = false;
|
||||
this.$nextTick(() => {
|
||||
this.selectedEvent = event;
|
||||
this.updateRecentEmojis();
|
||||
this.showContextMenu = true;
|
||||
this.showContextMenuAnchor = e.anchor;
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
showAvatarMenuForEvent(e) {
|
||||
|
|
@ -1761,6 +1768,7 @@ export default {
|
|||
if (this.showContextMenu) {
|
||||
this.showContextMenu = false;
|
||||
this.showContextMenuAnchor = null;
|
||||
this.selectedEvent = null;
|
||||
e.preventDefault();
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue