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) {
const event = e.event;
if (this.selectedEvent == event) {
this.showContextMenuAnchor = e.anchor;
this.showContextMenu = !this.showContextMenu;
} else {
this.showContextMenu = false;
this.$nextTick(() => {
this.selectedEvent = event;
this.updateRecentEmojis();
this.showContextMenu = true;
this.showContextMenuAnchor = e.anchor;
this.showContextMenu = true;
})
}
},