mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Non-Interfering Backdrop Clicks (#21916)
Previously, there was an issue where closing the message actions menu on mobile would unintentionally trigger a click event on an element below it, such as a thread indicator or a reaction. With the recent fix, this problem has been resolved. Now, when you close the menu, it will no longer interfere with or activate any elements positioned underneath it.
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
<div
|
<div
|
||||||
role="button"
|
role="button"
|
||||||
class="collapse-area"
|
class="collapse-area"
|
||||||
{{on "touchstart" this.collapseMenu passive=true}}
|
{{on "touchstart" this.collapseMenu}}
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default class ChatMessageActionsMobile extends Component {
|
|||||||
|
|
||||||
@action
|
@action
|
||||||
collapseMenu(event) {
|
collapseMenu(event) {
|
||||||
event.stopPropagation();
|
event.preventDefault();
|
||||||
this.#onCloseMenu();
|
this.#onCloseMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user