From c730061018a4fba52fc3d26bc54672ec0bdc1c89 Mon Sep 17 00:00:00 2001 From: Mike Solar Date: Thu, 27 Aug 2026 20:43:09 +0800 Subject: [PATCH] app: occlude the app-owned ComboBox dropdown It is a plain deferred div rather than an anchored element, so it gets no automatic BlockMouse hitbox; clicks on its padding fell through to the controls below. --- crates/oak-app/src/oakui/component/controls.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/oak-app/src/oakui/component/controls.rs b/crates/oak-app/src/oakui/component/controls.rs index 998a72922..145403639 100644 --- a/crates/oak-app/src/oakui/component/controls.rs +++ b/crates/oak-app/src/oakui/component/controls.rs @@ -904,6 +904,11 @@ impl Render for ComboBox { .border_color(colors.border) .bg(colors.background) .shadow_md() + // Block clicks on the dropdown's padding/empty areas + // from falling through to the controls below (this is + // a plain deferred div, not an anchored element, so it + // gets no automatic BlockMouse hitbox). + .occlude() .py_1() .children(options.iter().enumerate().map(|(i, opt)| { let highlighted = i == highlight;