diff --git a/leptos_macro/src/view.rs b/leptos_macro/src/view.rs index 577fa2088..545464b9c 100644 --- a/leptos_macro/src/view.rs +++ b/leptos_macro/src/view.rs @@ -427,10 +427,10 @@ fn attribute_to_tokens_ssr( if name != "class" { template.push(' '); - template.push_str(&name); if let Some(value) = node.value.as_ref() { if let Some(value) = value_to_string(value) { + template.push_str(&name); template.push_str("=\""); template.push_str(&value); template.push('"');