Skip to content

A platform for community discussion. Free, open, simple.

FIX: Non-Interfering Backdrop Clicks (#21916)

Joffrey JAFFEUX330137e7e4ec
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.hbs
index b232493a669..8b15d1e73f3 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.hbs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.hbs
@@ -9,7 +9,7 @@
<div
role="button"
class="collapse-area"
- {{on "touchstart" this.collapseMenu passive=true}}
+ {{on "touchstart" this.collapseMenu}}
>
</div>
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.js b/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.js
index 8432c5a4bc0..064954cd44b 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.js
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.js
@@ -48,7 +48,7 @@ export default class ChatMessageActionsMobile extends Component {
@action
collapseMenu(event) {
- event.stopPropagation();
+ event.preventDefault();
this.#onCloseMenu();
}