Skip to content

Commit

Permalink
fix: correctly quote spread attributes in {..attrs} syntax (closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Oct 2, 2023
1 parent 6f9c40b commit e0d15c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leptos_macro/src/view/server_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ fn element_to_tokens_ssr(
template.push_str(" {}");
holes.push(quote! {
{#end}.into_iter().filter_map(|(name, attr)| {
Some(format!("{}={}", name, ::leptos::leptos_dom::ssr::escape_attr(&attr.as_nameless_value_string()?)))
Some(format!("{}=\"{}\"", name, ::leptos::leptos_dom::ssr::escape_attr(&attr.as_nameless_value_string()?)))
}).collect::<Vec<_>>().join(" ")
});
};
Expand Down

0 comments on commit e0d15c1

Please sign in to comment.