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) {
|
showContextMenuForEvent(e) {
|
||||||
const event = e.event;
|
const event = e.event;
|
||||||
this.selectedEvent = event;
|
if (this.selectedEvent == event) {
|
||||||
this.updateRecentEmojis();
|
this.showContextMenu = !this.showContextMenu;
|
||||||
this.showContextMenu = !this.showContextMenu;
|
} else {
|
||||||
this.showContextMenuAnchor = e.anchor;
|
this.showContextMenu = false;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.selectedEvent = event;
|
||||||
|
this.updateRecentEmojis();
|
||||||
|
this.showContextMenu = true;
|
||||||
|
this.showContextMenuAnchor = e.anchor;
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
showAvatarMenuForEvent(e) {
|
showAvatarMenuForEvent(e) {
|
||||||
|
|
@ -1761,6 +1768,7 @@ export default {
|
||||||
if (this.showContextMenu) {
|
if (this.showContextMenu) {
|
||||||
this.showContextMenu = false;
|
this.showContextMenu = false;
|
||||||
this.showContextMenuAnchor = null;
|
this.showContextMenuAnchor = null;
|
||||||
|
this.selectedEvent = null;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue