From 37ec553dd8f59f80dcb809ade77a19343fa21d50 Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 12 Nov 2026 05:58:34 +0000 Subject: [PATCH] Access: a read-only value declares no Increment, Decrement or SetValue --- crates/ui-contract/src/runtime/access/emit.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ui-contract/src/runtime/access/emit.rs b/crates/ui-contract/src/runtime/access/emit.rs index a39be6023..d5cc456b0 100644 --- a/crates/ui-contract/src/runtime/access/emit.rs +++ b/crates/ui-contract/src/runtime/access/emit.rs @@ -148,6 +148,8 @@ fn write_position(spec: &mut NodeSpec, position: Option, level: Opt /// The actions the interaction and the numeric facts declare. fn declare_actions(spec: &mut NodeSpec, focusable: bool, clickable: bool, numeric: Option<&Numeric>) { + // A read-only value offers no action that would change it. + let numeric = numeric.filter(|_| !spec.read_only); if focusable { spec.actions.push(NodeAction::Focus); }