FIX: ensures reply is unlocking body scroll (#26616)

Prior to this fix we were calling the action before closing the menu which could cause various callbacks, like the enable body scroll one, to not be called as some actions will do: `chat.activeMessage = null;` causing the message actions menu to be instantly destroyed.
This commit is contained in:
Joffrey JAFFEUX
2024-04-12 10:01:53 +02:00
committed by GitHub
parent 11eb4153fa
commit 01a0f8298f

View File

@ -21,7 +21,6 @@ export default class ChatMessageActionsMobile extends Component {
@service capabilities;
@tracked hasExpandedReply = false;
@tracked showFadeIn = false;
get message() {
return this.chat.activeMessage.model;
@ -60,14 +59,14 @@ export default class ChatMessageActionsMobile extends Component {
@action
actAndCloseMenu(fnId) {
this.messageInteractor[fnId]();
this.args.closeModal();
this.messageInteractor[fnId]();
}
@action
openEmojiPicker(_, event) {
this.messageInteractor.openEmojiPicker(_, event);
this.args.closeModal();
this.messageInteractor.openEmojiPicker(_, event);
}
<template>