Преглед на файлове

Fix script component src attribute (#2887)

Evan Almloff преди 10 месеца
родител
ревизия
e5696cd72f
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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
     }