Fix popup menu positioning

This commit is contained in:
N-Pex 2024-11-05 10:24:08 +01:00
parent e409b0f2fc
commit 9278205dfa

View file

@ -1895,14 +1895,15 @@ export default {
showContextMenuForEvent(e) { showContextMenuForEvent(e) {
const event = e.event; const event = e.event;
if (this.selectedEvent == event) { if (this.selectedEvent == event) {
this.showContextMenuAnchor = e.anchor;
this.showContextMenu = !this.showContextMenu; this.showContextMenu = !this.showContextMenu;
} else { } else {
this.showContextMenu = false; this.showContextMenu = false;
this.$nextTick(() => { this.$nextTick(() => {
this.selectedEvent = event; this.selectedEvent = event;
this.updateRecentEmojis(); this.updateRecentEmojis();
this.showContextMenu = true;
this.showContextMenuAnchor = e.anchor; this.showContextMenuAnchor = e.anchor;
this.showContextMenu = true;
}) })
} }
}, },