From 52d2259060416488dd35ff614524a331e9d07b87 Mon Sep 17 00:00:00 2001 From: Factor Date: Thu, 19 Nov 2026 16:09:19 +0100 Subject: [PATCH] fix: row menu press does not reach the shield Co-Authored-By: Ovis Fast (Claude) --- herdr/herdr-composer/mods/herdr-composer/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/herdr/herdr-composer/mods/herdr-composer/main.js b/herdr/herdr-composer/mods/herdr-composer/main.js index 04ae245..8828862 100644 --- a/herdr/herdr-composer/mods/herdr-composer/main.js +++ b/herdr/herdr-composer/mods/herdr-composer/main.js @@ -2476,6 +2476,11 @@ export default class Composer extends View { .top(52) .right(18) .on_mouse_down_out((event, cx) => this.closeRowMenuByClick(cx)) + // A press on the menu is the menu's: it must not reach the shield + // under it (the shield would close the menu before the item's click). + .on_mouse_down("left", (event, cx) => cx.stop_propagation()) + .on_mouse_down("right", (event, cx) => cx.stop_propagation()) + .on_click((event, cx) => cx.stop_propagation()) .child(this.renderContextMenu(t, this.contextItems(), (command, cx) => this.menuCommand(command, cx))), ), );