Procházet zdrojové kódy

Merge pull request #902 from Demonthos/fix-ssr-raw-attributes

Fix raw attribute values in SSR
Jon Kelley před 2 roky
rodič
revize
a687f697c7
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      packages/ssr/src/renderer.rs

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

@@ -89,6 +89,10 @@ impl Renderer {
                                 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)?
+                            }
                             _ => {}
                         };
                     }