git clone https://garage44.eu/jeroen/pinnacle.gitcartopolis-agent · 2026-11-30T15:36:29Z
fix(view): an option is not announced as a control of its own A select's options carry the data-name their rows in the open menu take, so a test can tap one. Announced too, the hidden ones stood at 0 0 and the access demo tapped there.
view/src/lib.rs | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/view/src/lib.rs b/view/src/lib.rs
index ad67ea6..b4ebf37 100644
--- a/view/src/lib.rs
+++ b/view/src/lib.rs
@@ -650,6 +650,12 @@ impl Screen {
let tree = self.ui.tree();
tree.iter()
.filter_map(|(_, n)| {
+ // An option is tapped as its row in the select's open menu,
+ // which carries its name; the option itself, in the closed
+ // select, is shown or not at all.
+ if n.tag() == Some("option") {
+ return None;
+ }
let name = n.attr("data-name")?;
let r = &n.placed.rect;
let (x, y) = ((r.x + r.w / 2.0) * self.scale, (r.y + r.h / 2.0) * self.scale);