fix: row menu press does not reach the shield

Co-Authored-By: Ovis Fast (Claude) <[email protected]>
This commit is contained in:
FactorandOvis Fast committed 2026-11-19 16:09:19 +01:00
1 parent 3292b04989
commit 52d2259060
1 file changed
+5
@@ -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))),
),
);