소스 검색

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
     }