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:
parent
ab1bb0cfa0
commit
330137e7e4
@ -9,7 +9,7 @@
|
||||
<div
|
||||
role="button"
|
||||
class="collapse-area"
|
||||
{{on "touchstart" this.collapseMenu passive=true}}
|
||||
{{on "touchstart" this.collapseMenu}}
|
||||
>
|
||||
</div>
|
||||
|
||||
|
@ -48,7 +48,7 @@ export default class ChatMessageActionsMobile extends Component {
|
||||
|
||||
@action
|
||||
collapseMenu(event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
this.#onCloseMenu();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user