From 5adbdb357ee2ee33f07dcad3494be6cbe6227375 Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 16 Nov 2026 12:53:53 +0000 Subject: [PATCH] merge-fwb: A11: the draft trial's rig has a second field, so Tab leaves the field and commits --- crates/ui-widgets/tests/it/text/number.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ui-widgets/tests/it/text/number.rs b/crates/ui-widgets/tests/it/text/number.rs index 39d90ec9b..c968b4fc1 100644 --- a/crates/ui-widgets/tests/it/text/number.rs +++ b/crates/ui-widgets/tests/it/text/number.rs @@ -469,6 +469,8 @@ fn a_draft_that_is_no_number_owes_no_range_alert() { let out = NumberField::new("Amount", Bind::bound(&mut now)).id_salt("amount").range(0.0..=100.0).commit_decimals(0).show(ui); held.set(now); seen.borrow_mut().extend(out.out_of_range.clone()); + // Where Tab takes the focus, so the field commits. + NumberField::new("Other", Bind::bound(&mut Some(1.0))).id_salt("other").show(ui); }); fixture.settle(); let amount = fixture.by_label("Amount").expect("the field");