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.
This commit is contained in:
2026-08-27 20:43:09 +08:00
parent 9c0269bcbb
commit c730061018
@@ -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;