From 8b2b30276261e76ec422062275fb3284d18a2e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sat, 29 Nov 2025 11:49:19 +0100 Subject: [PATCH] Fix `checkbox` rendering its `label` unconditionally --- widget/src/checkbox.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/widget/src/checkbox.rs b/widget/src/checkbox.rs index daaa9e69..6edab836 100644 --- a/widget/src/checkbox.rs +++ b/widget/src/checkbox.rs @@ -439,6 +439,10 @@ where } } + if self.label.is_none() { + return; + } + { let label_layout = children.next().unwrap(); let state: &widget::text::State =