Parcourir la source

fix int and float raw values in ssr

Evan Almloff il y a 2 ans
Parent
commit
96397f08d0
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      packages/ssr/src/renderer.rs

+ 2 - 0
packages/ssr/src/renderer.rs

@@ -77,6 +77,8 @@ impl Renderer {
                     match attr.value {
                         AttributeValue::Text(value) => write!(buf, " {}=\"{}\"", attr.name, value)?,
                         AttributeValue::Bool(value) => write!(buf, " {}={}", attr.name, value)?,
+                        AttributeValue::Int(value) => write!(buf, " {}={}", attr.name, value)?,
+                        AttributeValue::Float(value) => write!(buf, " {}={}", attr.name, value)?,
                         _ => {}
                     };
                 }