Fix issues with attribute names in SSR (#418)

This commit is contained in:
Greg Johnston 2023-01-31 11:57:05 -05:00 committed by GitHub
parent e2cdbc746f
commit 45eee12b18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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('"');