Pārlūkot izejas kodu

Fix script component src attribute (#2887)

Evan Almloff 10 mēneši atpakaļ
vecāks
revīzija
e5696cd72f
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      packages/html/src/document/head.rs

+ 3 - 0
packages/html/src/document/head.rs

@@ -222,6 +222,9 @@ impl ScriptProps {
         if let Some(r#type) = &self.r#type {
             attributes.push(("type", r#type.clone()));
         }
+        if let Some(src) = &self.src {
+            attributes.push(("src", src.clone()));
+        }
         attributes
     }