A platform for community discussion. Free, open, simple.
FIX: ensures we close modal on reaction (#26745)
Joffrey JAFFEUX2bab1df461d6
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.gjsindex b59b686abd5..c47461471c7 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.gjs@@ -63,6 +63,12 @@ export default class ChatMessageActionsMobile extends Component {this.messageInteractor[fnId]();}+ @action+ react(name, operation) {+ this.args.closeModal();+ this.messageInteractor.react(name, operation);+ }+@actionopenEmojiPicker(_, event) {this.args.closeModal();@@ -115,7 +121,7 @@ export default class ChatMessageActionsMobile extends Component {{{#each this.messageInteractor.emojiReactions as |reaction|}}<ChatMessageReaction@reaction={{reaction}}- @onReaction={{this.messageInteractor.react}}+ @onReaction={{this.react}}@message={{this.message}}@showCount={{false}}/>