mirror of
https://github.com/discourse/discourse.git
synced 2025-03-31 06:31:39 +08:00
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:
parent
11eb4153fa
commit
01a0f8298f
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user