Allow three dot menu to be opened on another message...

without closing the first.
This commit is contained in:
N-Pex 2024-07-19 14:38:06 +02:00
parent 1998bf2b64
commit b9acda1157

View file

@ -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();
}
},