From 6a9ce30834573eedea1613465f11239a011d7b74 Mon Sep 17 00:00:00 2001 From: Lucas Vas Date: Wed, 14 Jan 2026 08:12:12 -0500 Subject: [PATCH] fix: small hydration error, don't select other by default --- src/components/lists/single/radio.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/lists/single/radio.rs b/src/components/lists/single/radio.rs index 6233bc9..1cdbc25 100644 --- a/src/components/lists/single/radio.rs +++ b/src/components/lists/single/radio.rs @@ -42,7 +42,7 @@ pub fn Radio( rotate-45 transform border-3 border-3 rounded-full bg-white border-white transition-opacity duration-150"> - {value.clone()} + {value.clone()} } } @@ -107,7 +107,7 @@ fn RadioOther( /> // This div displays the box for the checkbox, and applies some styling to the child // span element. -
span]:opacity-0 peer-checked:[&>span]:opacity-100 peer-disabled:bg-gray-600/33 peer-disabled:border-gray-600 @@ -177,7 +177,7 @@ pub fn RadioList( _ => String::new() }; - if !items.contains(&default_value) { + if !items.contains(&default_value) && !default_value.is_empty() { other_checked.set(true); other_value.set(default_value.clone()); }